Integrate Grafana with Routing Director for Telemetry Data Visualization
Routing Director stores telemetry data in VictoriaMetrics, a high-performance, open-source time series database designed to efficiently handle large volumes of time series data.
Routing Director has built-in telemetry views, but it also provides you the flexibility to integrate third-party applications like Grafana for advanced visualization and analysis of the telemetry data. Grafana is an open-source visualization tool that lets you create dashboards, charts, and graphs to monitor device status and analyze data. Grafana provides greater flexibility for customizing dashboards and visualizations compared to Routing Director's built-in views. Grafana also allows you to combine metrics collected over different time intervals into a single graph, making it easier to analyze trends and monitor device performance. Additionally, you can query the telemetry data and view the results directly on the Grafana GUI.
You can integrate Grafana securely with Routing Director through standard REST APIs present in Routing Director. The Prometheus data source plugin in Grafana uses a pre-shared REST API token that is shared with Routing Director. Routing Director authenticates the REST API token and establishes a secure connection with Grafana. After successful authentication, VictoriaMetrics exposes the telemetry data through a Prometheus-compatible API. Grafana retrieves the telemetry data using PromQL queries, and displays the rendered results as dashboards and visualizations.
Grafana is installed and managed as an external application and does not share the same deployment environment as Routing Director. To ensure secure access, the Routing Director APIs used for Grafana integration should be configured with a read-only access. This configuration restricts Grafana to retrieving telemetry data and prevents modification of Routing Director configurations. Additionally, Routing Director applies resource limits to PromQL queries to prevent excessive query execution that could impact Routing Director operations and system performance.
/api/v1/query/api/v1/query_range/api/v1/series/api/v1/labels/api/v1/label/<name>/values/api/v1/metadata/api/v1/status/buildinfo
For more information about these Prometheus APIs, see Prometheus documentation.
Prerequisites:
-
You must have Routing Director installed and configured. For information on installing Routing Director, see Routing Director Installation Guide.
-
You must have an external Grafana setup. For more information, see Set up Grafana.
The following procedure lists the steps to integrate Grafana with Routing Director: