The Lightstep Metrics Plugin allows you to view metrics from Lightstep Observability directly in Grafana. With minimal effort, you can use the plugin to continue viewing your existing visualizations in Grafana, using Lightstep Observability as the data source. Then when you notice a deviation, you can click in a chart in Grafana and navigate into Lightstep Observability to use Change Intelligence and uncover the root cause.

Start Change Intelligence from Grafana

Change Intelligence determines the service that emitted a metric, searches for performance changes on Key Operations from that service at the same time as the deviation, and then uses trace data to determine what caused the change.

Change Intelligence in Lightstep Observability

The Lightstep Metrics Plugin is on a per-project basis. If you want this integration for multiple Lightstep Observability projects, follow these instructions for each of your projects.


You’ll need the following to enable and use the plugin:

  • A Grafana account (version 7.2.2 and greater)

    The plugin only supports graph and time series charts.

  • Metric data reporting to Lightstep Observability.

    Currently using Prometheus? You can use the OpenTelemetry Collector to send metrics to Lightstep Observability. Lightstep Observability also accepts metrics from other backends.

  • Your Organization and Project name. Both can be found on on the Project Settings page of Lightstep.

    Project settings

  • A Lightstep Observability API key with Viewer permissions created just for Grafana.

    Paste the key someplace safe, as you will not be able to access it again from Lightstep Observability.


You can install the plugin using the Grafana CLI, or if your Grafana server doesn’t have internet access, you can download and instal it manually.

Install from the CLI

Install the plugin from the Grafana CLI using Grafana’s plugin installation instructions.

grafana-cli plugins install lightstep-metrics-datasource

Install manually

  1. Download the zip file from GitHub.

  2. Install the plugin by extracting the archive to the Grafana grafana-plugins directory.

Enable the Lightstep Plugin in Grafana

After you install the plugin, follow these steps:

Steps may vary slightly depending on your version of Grafana.

  1. Restart the Grafana server so it can discover the new plugin.
  2. In the Navigation Bar, choose Configuration, select Data Sources, and click Add data source.

    Data Source

  3. Start typing Lightstep in the search field to find the Lightstep Metrics plugin and click Select.

    Find Lightstep

  4. Enter your Lightstep Observability organization and project name, paste in your Lightstep Observability API key, and click Save & Test.

    Grafana confirms that it’s connected to Lightstep Observability.

    Test confirmation

You can now create dashboards and charts in Grafana using metrics sent from Lightstep Observability.

Create Grafana charts using metrics from Lightstep Observability

With the Lightstep plugin installed, you can query your Lightstep Observability metrics directly from Grafana.

  1. In the Edit Panel view, make sure Lightstep Metrics is selected as the data source.

    Lightstep as data source

  2. Use the Metrics dropdown to select the metric for your query.

    Select metric

  3. Continue adding to your query in the Metrics field, using the PromQL query language.

    Enter a query

    Click out of the field (or press shift + Enter) to run your query.

  4. Choose the visualization for the chart (Lightstep supports either Graph or Time Series). Click Apply to create the graph.

    Apply visualization

Investigate a metric deviation from a Grafana chart

Now that you have a Grafana chart based on Lightstep Observability metrics, when you notice a deviation, you can go directly from that chart into Lightstep Observability to find the root cause.

When you view the chart and notice a deviation that you’d like to investigate, click into the deviation and select View what changed in Lightstep.

Start Change Intelligence

You’re taken into Change Intelligence in Lightstep Observability, where you can start your investigation.

Change Intelligence