Zipkin data source
Grafana ships with built-in support for Zipkin, an open source, distributed tracing system. Just add it as a data source and you are ready to query your traces in Explore.
Adding the data source
To access Zipkin settings, click the Configuration (gear) icon, then click Data Sources > Zipkin.
||The data source name in panels, queries, and Explore.|
||The pre-selected data source for a new panel.|
||The URL of the Zipkin instance. For example,
||Enable basic authentication for the Zipkin data source.|
||Specify a user name for basic authentication.|
||Specify a password for basic authentication.|
Trace to logs
Note: This feature is available in Grafana 7.4+.
This is a configuration for the trace to logs feature. Select target data source (at this moment limited to Loki data sources) and select which tags will be used in the logs query.
- Data source - Target data source.
- Tags - The tags that will be used in the Loki query. Default is
'cluster', 'hostname', 'namespace', 'pod'.
Querying and displaying traces from Zipkin is available via Explore.
The Zipkin query editor allows you to query by trace ID directly or selecting a trace from trace selector. To query by trace ID, insert the ID into the text input.
Use the trace selector to pick particular trace from all traces logged in the time range you have selected in Explore. The trace selector has three levels of nesting:
- The service you are interested in.
- Particular operation is part of the selected service
- Specific trace in which the selected operation occurred, represented by the root operation name and trace duration.
Data mapping in the trace UI
Zipkin annotations are shown in the trace view as logs with annotation value shown under annotation key.
Linking Trace ID from logs
You can link to Zipkin trace from logs in Loki by configuring a derived field with internal link. See Loki documentation for details.
Related Grafana resources
Unify your data with Grafana plugins: Splunk, MongoDB, Datadog, and more
Show how Grafana can be used to take data from multiple different sources and unify it, without disrupting the investments that are working today.
Demo: Getting started with Grafana Enterprise and observability
Join the Grafana Labs team for a 30-minute demo of how to get started with the Grafana Stack, so you can go from zero to observability in just a few minutes.