3 min read
|
Saved February 14, 2026
|
Copied!
Do you care about this?
This article explains how to use Grafana's correlation feature to link data from different sources, such as VictoriaMetrics and Grafana Cloud Logs. It details the setup process, including creating a correlation rule and querying metrics to access related logs seamlessly.
If you do, here's more
Grafana allows users to connect different data sources seamlessly, enabling cross-store correlations without needing to keep all data within its native backends. This feature lets users click on specific metrics in a chart and instantly access related logs or traces, maintaining the same time range and label values automatically. The article uses VictoriaMetrics as an example to demonstrate how to set up these correlations, but the principles apply to any compatible data source.
To implement this, users need a Grafana Cloud stack, a metrics storage solution like VictoriaMetrics, and a demo application that exposes Prometheus metrics. The process involves setting up VictoriaMetrics within a Kubernetes cluster and configuring Grafana to connect to it. The article details specific commands for deploying VictoriaMetrics and establishing a connection to Grafana Cloud Logs via an SSH tunnel for secure access.
Once the setup is complete, users can create a correlation link in Grafana's administration settings. For instance, a correlation link can be configured to pull logs from Grafana Cloud Logs based on the selected pod from VictoriaMetrics data. Testing this in Explore mode allows users to interactively click on pod values in a table view, leading them directly to the corresponding logs without additional configuration. This streamlined access is designed to enhance troubleshooting and monitoring across diverse data sources.
Questions about this article
No questions yet.