Lightstep offers a plugin for Grafana that allows you to view Lightstep Stream charts directly in Grafana. You can navigate directly from the chart in Grafana to Lightstep where you can continue your investigation.
The Grafana integration is on a per-project basis. If you want this integration for multiple Lightstep projects, follow these instructions for each of your projects.
You’ll need the following to enable and use the plugin:
- Your Organization and Project name. Both can be found on on the Project Settings page of Lightstep.
- An API key created just for Grafana.
- Existing Streams in Lightstep.
Install the plugin from the Grafana CLI using Grafana’s plugin installation instructions.
The Lightstep plugin is located in Git.
1 grafana-cli --pluginUrl https://github.com/lightstep/lightstep-grafana-plugin/archive/master.zip plugins install lightstep-grafana-plugin
Enable the Lightstep Plugin in Grafana
After you install the plugin, follow these steps:
Steps may vary slightly depending on your version of Grafana.
- Restart the
grafanaserver so it can discover the new plugin.
- On Grafana’s Home Dashboard, on the right, click Enable Now for the Lightstep App.
- Click on the Grafana menu icon on the top left, and select Data Sources.
- On the top right, click Add data source.
- Set the name of your new data source (e.g. Lightstep).
- Set the type to Lightstep.
- Set your Organization and Project name.
- Set your API key.
- Make sure you leave the Access setting under Advanced set to
- Hit Add at the bottom to save your new data source.
Use the Lightstep Plugin in Grafana
With the Lightstep plugin installed, you can query your Lightstep streams directly from Grafana.
- In the Edit Panel view, make sure Lightstep is selected as the data source.
- In the Select stream dropdown, start typing the Stream’s name to find it.
- To visualize the data correctly, in the Visualization Panel, select Lightstep Graph.
- Click Apply to create the graph.
When viewing the graph, you can navigate to a trace in Lightstep by clicking any of the exemplar traces in the graph.