Visualization in Grafana
Dashboards Configuration
Visualizing Metrics in Grafana requires a third-party plugin, such as Infinity plugin, which enables Grafana to query various data sources, including REST APIs. Follow the instructions below to configure Grafana and its dependencies.
Install the Infinity
Plugin
Infinity
PluginOpen your Grafana UI instance.
Navigate to Administration > Plugins (
/grafana/plugins
).Search for "Infinity".
Click on Install to add the plugin to your Grafana instance.
Alternatively, you can install the plugin using the Grafana CLI by running:
grafana cli plugins install yesoreyeram-infinity-datasource
Check for other installation methods in the plugin's "Installation" documentation.
Add and Set Up New Data Source
In the Grafana UI, go to Connections > Data Sources (
/grafana/connections/datasources
).Click
Add new data source
and search for theInfinity
plugin to open data source configuration page.Under
URL, Headers & Params
for theInfinity
plugin, configure the Base URL field.For example, if metrics are available by this URL
http://<IP address>/metrics-server/api/v1/metrics/pipeline/classification
, configure Base URL ashttp://<IP address>/metrics-server
.Bear in mind, the URL should be accessible from the Grafana instance and the
/metrics-server
path comes from the KubernetesVirtualService
(.spec.http.match.uri.prefix
) resource that should have been created when installing the Metrics Server via Helm.
Save the data source configuration.
Import the Dashboard JSON
Use these instructions to import the dashboard provided below to visualize classification metrics or regression metrics.
Navigate to Dashboards > New > Import page (
/grafana/dashboard/import
).In the Import Dashboard page, paste and load the entire JSON configuration into the Dashboard JSON field.
During the import process, Grafana will ask for a data source. The imported dashboard is configured to use the Infinity plugin. Under "Datasource", ensure the Infinity data source is selected.
Once the correct data source is selected, proceed to click Import.
Verify Dashboard Variables
Ensure you choose the correct namespace, pipeline name, model name, and interval.
namespace contains Namespaces retrieved from the subscriptions.
Pipeline Name contains pipelines deployed within the chosen namespace.
Model Name contains models that are part of the deployed pipeline.
Interval (
interval
) contains predefined interval values.
If you need to modify the variables (for example, to change the list of predefined intervals), you can do so in the Dashboard settings (gear icon in the top-right corner).
Configure Time Range
By default, the dashboard time range is set to the last 6 hours. However, if you want to view metrics for a specific time range, you can configure it as follows:
Open the dashboard in Grafana.
Click on the time range selector (usually displayed as "Last 30 minutes", "Last 24 hours", or a custom time range).
On the left-hand side in Absolute time range, specify the From and To dates and times for the period you want to monitor.
The From time will define the starting point of the time range.
The To time will define the ending point of the time range.
After setting the absolute time range, click Apply to confirm the changes.
Change
Interval
dashboard variable if needed.
While the metrics API supports timezone offsets in datetime strings, you should configure the timezone in Grafana using the time range controls by clicking the Change time settings button.
Troubleshooting
Be aware that the Infinity plugin doesn't expose API server errors. You could track an open pull request in the Infinity repository aimed to solved the issue.
Refer to the documentation of Infinity plugin limitations.
Classification Metrics Dashboard
A Classification Metrics dashboard is available to monitor key performance metrics for classification models deployed with Core 2. This dashboard provides insights into classification metrics.
Classification MetricsUse the instructions above to import and configure the dashboard configuration JSON for classification metrics provided below:

Regression Metrics Dashboard
A Regression Metrics dashboard is available to monitor key performance metrics for regression models deployed with Core 2. This dashboard provides insights into regression metrics.
Regression MetricsUse the instructions above to import and configure the dashboard configuration JSON for regression metrics provided below:

Last updated
Was this helpful?