Collect KPIs

The KPI REST endpoints provide key performance indicators (KPIs) that summarize your network cluster’s overall health while also allowing you to examine specific events in greater detail. KPIs reflect aggregated data across all domains.

Access the API

You can access key performance indicators by making a GET request to the /v1/kpis endpoint. You must specify your username and password in the request body:

curl --request GET \
  --url https://<ip_address>/nmx/v1/kpis \
  --user "<username>:<password>" --insecure 
wget --quiet \
  --method GET \
  --user '<username>' \
  --password '<password>' \
  --output-document \
  - https://<ip_address>/nmx/v1/kpis --no-check-certificate

Apply Filters

The REST API supports filtering based on health, inventory, and time ranges. To use these filters, append the filter parameter to the endpoint, for example kpis?filter=HEALTH. Refer to the Swagger API for a complete list of available filters.

Example with filtering

Example without filtering

You can also apply filters to view health data at a specific point in time or over a time range. NetQ NVLink collects health status information every hour. If you do not specify a time filter, the API aggregates health counts from all domains and returns the entire available time range.

Example with time-based filtering

View KPIs in Grafana

To view KPIs in Grafana, first download Grafana and configure the data sources. When you are ready to import the dashboard template, copy the contents of the kpi-dashboard JSON file and paste them in Grafana.

kpi-dashboard.json