Plugins 〉ITRS Analytics
ITRS Analytics
ITRS Analytics data source for Grafana
Prerequisites
The ITRS Analytics datasource connects exclusively to the API Gateway. It does not call individual platform services directly.
- The API Gateway must be deployed and expose Public API v2 (
/api/v2/*). - Grafana 12.0.0 or later is required.
| Query type | Minimum API Gateway version |
|---|---|
| Metrics | 2.7.0 |
| Logs | 2.10.0 |
Authentication is handled by Grafana: users log in via the platform IAM (OAuth), and the datasource uses that session. The plugin does not have separate credentials.
Datasource Usage
Configure the data source
Go to Configuration > Data sources section
Click on "Add data source" and look for "ITRS Analytics" one and select it
ITRS Analytics Settings
| Field | Description |
|---|---|
| ITRS Analytics API | Base URL of the API Gateway, i.e. https://local.itrslab.com/obcerv-app-api-gateway |
| Skip tls verification | If you want to skip the TLS verification |
You can also click on the Default switch on the top of the screen if you want it to appear as default datasource.
Click on Save and test to save the configuration
(You can see the official Grafana doc to add a datasource here)
Query the data source
At the top of the panel query editor, use the Mode radio to select Metrics or Logs. Metrics mode is the default when no mode is set.
Use a time series, stat, or table panel for metrics queries. Use Grafana's Logs panel for log queries.
Metrics mode
| Field | Description |
|---|---|
| Alias | Optional legend label for the series |
| Filter | Build one or more entity filters via autocomplete (dimension or attribute name, = operator, value). Example chip: pod = my-pod. Multiple filters can be combined. |
| Metric | Metric name (searchable combobox; shows namespace when present) |
| Group by | Dimensions to group results |
| Buckets | Time bucket interval (e.g. one minute, five minutes). Leave unset for automatic bucketing. |
| Bucket function | Aggregation within each bucket: Avg (default), Sum, Min, Max, Count, Rate, Percentile (with percentile selector) |
- Note: Stat visualization, to use status metrics on "Options Panel", "Value options" section, select in Fields drop-down All fields in order to display not only numeric fields.
Logs mode
Selecting Logs shows a Search radio with Simple or Advanced options.
Simple search
| Field | Description |
|---|---|
| Log name | Combobox of discovered log sources for the dashboard time range. Query runs on selection. |
Advanced search
| Field | Description |
|---|---|
| Log name | Log source name (required) |
| Log namespace | Log source namespace (required) |
| Dimensions | One or more dimension key/value pairs (required; use Add dimension for more rows) |
| Message contains | Optional; one substring per line, OR-matched against log message text |
| Trace id / Span id | Optional filters |
| Max lines | Optional result cap |
| Oldest first | Switch to return oldest log lines first |
| Run query | Click to execute (advanced mode does not auto-run on field change) |
Templates and variables
You can add variables to your dashboard. To add a new ITRS Analytics query variable, go to dashboards settings, and click on Add variable in Variables section.
Variables apply to metrics query fields (filter, group by, metric lookups). Logs mode uses the visual editor rather than JSON variable queries.
Required fields:
General
| Field | Value |
|---|---|
| Name | Variable name, this name will be used in the data source to refer to the variable with the $ symbol in front |
| Type | Query |
Query Options
| Field | Value |
|---|---|
| Data source | ITRS Analytics |
| Query | syntax: {"name":"dimension-or-attribute"}, example: { "name": "container" } |
- Note: Selection options, check multi-value switch if you want to choose more than one value for the variable
If you want to see a preview of the values, click on Update.
Then you can filter the widgets you want to depend on the variable using the name with a $:
{ "name": "$<variable-name>" }
And you will be able to use the variable in your dashboard.
Variables with filter
The variables can be filtered by another variable, a dimension or an attribute. The syntax to populate variables with a filter is:
{ "name": "<dimension-or-attribute>", "filter": [{ "name": "<dimension-or-attribute>", "value": "$variableName1" }] }
The filter is a list of objects with the fields name and value. The name must be an
attribute or dimension name, the value can be a specific value or the name of another variable with
the $ prefix. For example, if it exists a variable named kubecontainer, the query could be:
{ "name": "pod", "filter": [{ "name": "container", "value": "$kubecontainer" }] }
This will allow variable chaining so the values of some variables can be used to filter other dependant variables.
Some useful links with information about query variables:
Grafana Cloud Free
- Free tier: Limited to 3 users
- Paid plans: $55 / user / month above included usage
- Access to all Enterprise Plugins
- Fully managed service (not available to self-manage)
Self-hosted Grafana Enterprise
- Access to all Enterprise plugins
- All Grafana Enterprise features
- Self-manage on your own infrastructure
Grafana Cloud Free
- Free tier: Limited to 3 users
- Paid plans: $55 / user / month above included usage
- Access to all Enterprise Plugins
- Fully managed service (not available to self-manage)
Self-hosted Grafana Enterprise
- Access to all Enterprise plugins
- All Grafana Enterprise features
- Self-manage on your own infrastructure
Grafana Cloud Free
- Free tier: Limited to 3 users
- Paid plans: $55 / user / month above included usage
- Access to all Enterprise Plugins
- Fully managed service (not available to self-manage)
Self-hosted Grafana Enterprise
- Access to all Enterprise plugins
- All Grafana Enterprise features
- Self-manage on your own infrastructure
Grafana Cloud Free
- Free tier: Limited to 3 users
- Paid plans: $55 / user / month above included usage
- Access to all Enterprise Plugins
- Fully managed service (not available to self-manage)
Self-hosted Grafana Enterprise
- Access to all Enterprise plugins
- All Grafana Enterprise features
- Self-manage on your own infrastructure
Grafana Cloud Free
- Free tier: Limited to 3 users
- Paid plans: $55 / user / month above included usage
- Access to all Enterprise Plugins
- Fully managed service (not available to self-manage)
Self-hosted Grafana Enterprise
- Access to all Enterprise plugins
- All Grafana Enterprise features
- Self-manage on your own infrastructure
Install on Grafana Cloud
Plugins can be installed directly from within your Grafana instance or automated using the Cloud API or Terraform.
Learn more about plugin installationMarketplace plugins
This is a paid plugin developed by a marketplace partner. To purchase an entitlement, sign in first, then fill out the contact form.
Get this plugin
This is a paid for plugin developed by a marketplace partner. To purchase entitlement please fill out the contact us form.
What to expect:
- Grafana Labs will reach out to discuss your needs
- Payment will be taken by Grafana Labs
- Once purchased the plugin will be available for you to install (cloud) or a signed version will be provided (on-premise)
Thank you! We will be in touch.
For more information, visit the docs on plugin installation.
Installing on a local Grafana:
For local instances, plugins are installed and updated via a simple CLI command. Plugins are not updated automatically, however you will be notified when updates are available right within your Grafana.
1. Install the Data Source
Use the grafana-cli tool to install ITRS Analytics from the commandline:
grafana-cli plugins install The plugin will be installed into your grafana plugins directory; the default is /var/lib/grafana/plugins. More information on the cli tool.
Alternatively, you can manually download the .zip file for your architecture below and unpack it into your grafana plugins directory.
Alternatively, you can manually download the .zip file and unpack it into your grafana plugins directory.
2. Configure the Data Source
Accessed from the Grafana main menu, newly installed data sources can be added immediately within the Data Sources section.
Next, click the Add data source button in the upper right. The data source will be available for selection in the Type select box.
To see a list of installed data sources, click the Plugins item in the main menu. Both core data sources and installed data sources will appear.
Changelog
Changes for the ITRS Analytics data source are available in the ITRS Analytics release notes.







