docs/sources/datasources/zipkin/troubleshooting/index.md
This document provides solutions to common issues you may encounter when configuring or using the Zipkin data source, including connection failures, query errors, JSON upload issues, and configuration problems. For configuration instructions, refer to Configure Zipkin.
These errors occur when Grafana can't connect to the Zipkin instance.
error reading settings: url is emptySymptoms:
Solutions:
http://localhost:9411.Symptoms:
Possible causes and solutions:
| Cause | Solution |
|---|---|
| Incorrect URL or port | Verify the URL and port. The default Zipkin port is 9411. Ensure you haven't accidentally used the Jaeger port (16686). |
Missing /api/v2 path | The Zipkin data source calls /api/v2/services, /api/v2/traces, etc. Verify these endpoints are accessible at the configured URL. |
| Reverse proxy misconfiguration | If using a reverse proxy, ensure it correctly forwards requests to the Zipkin API. |
| Authentication failure | If the Zipkin instance requires authentication, verify your credentials are correct. |
error creating http client or TLS errorsSymptoms:
Solutions:
Symptoms:
Possible causes and solutions:
| Cause | Solution |
|---|---|
| Zipkin instance is down | Confirm the Zipkin instance is running and accessible from the Grafana server. |
| Firewall or network rules | Ensure the Grafana server can reach the Zipkin instance. Check that firewall rules allow outbound traffic on the configured port. |
| DNS resolution failure | Verify the hostname in the URL resolves correctly from the Grafana server. |
For Grafana Cloud, if you're accessing a private Zipkin instance, configure Private data source connect.
These errors occur when using the query editor in Explore or dashboards.
Symptoms:
This error occurs when the frontend can't reach the Zipkin API endpoints (/api/v2/services, /api/v2/spans, or /api/v2/traces).
Solutions:
curl http://<ZIPKIN_URL>/api/v2/services.An error occurred while doing a resource call in the logs.Symptoms:
This is a generic error returned by the Zipkin plugin backend when an internal error occurs. The actual error details are only available in the Grafana server logs.
Solutions:
An error occurred while doing a resource call or An error occurred while processing response from resource call.Symptoms:
Possible causes and solutions:
| Cause | Solution |
|---|---|
| Invalid trace ID | Verify the trace ID is correct. Zipkin trace IDs are 16 or 32 character hex strings. |
| Empty trace ID | Ensure the Trace ID field isn't empty. The backend rejects queries with invalid/empty traceId. |
| Time range doesn't contain data | Expand the dashboard or Explore time range. Traces must fall within the selected time range for the cascading selector to find them. |
| Trace has expired | Zipkin may have purged old trace data based on its retention settings. Check your Zipkin storage configuration. |
| No services registered | If the cascading selector shows "No traces found" at the top level, your Zipkin instance may have no data. Verify data is being collected. |
These errors occur when importing a JSON trace file.
Symptoms:
Possible causes and solutions:
| Cause | Solution |
|---|---|
| Invalid JSON syntax | Validate the file with a JSON linter. Common issues include trailing commas, missing quotes, or unclosed brackets. |
| Wrong JSON structure | The file must be a JSON array of span objects ([{...}, {...}]), not a single object. Refer to the Zipkin v2 span format. |
| Wrong file type | Ensure you're uploading a .json file, not a different format. |
unsupported query type upload. only available in frontend modeSymptoms:
Upload queries only work in Explore. They can't be used in dashboard panels or alerting rules because the upload is processed in the browser, not the backend.
Solution:
Use the TraceID query type with the trace ID from your uploaded trace if you need to display it in a dashboard. This requires the trace to exist in your Zipkin instance.
These errors relate to data source configuration settings.
Symptoms:
Solutions:
5s, 1m, 3h, -30m.-1h).s, m, h).Symptoms:
Possible causes and solutions:
| Cause | Solution |
|---|---|
| Tags not present in span | The tags configured in trace to logs settings must exist in the span attributes for the link to appear. Verify the span contains the expected tags. |
| Logs data source not configured | Ensure the target logs data source (Loki, Elasticsearch, Splunk, OpenSearch, FalconLogScale, Google Cloud Logging, or VictoriaMetrics Logs) is configured and working. |
| Custom query variables not resolved | If using a custom query, the link only appears when all variables resolve to non-empty values. Verify the span contains the referenced tags. |
| Wrong data source type selected | The trace to logs data source must be a supported logs data source. Other data source types don't appear in the drop-down. |
Symptoms:
Solutions:
$__tags keyword in queries maps to tags that exist in the span.These errors relate to using template variables with the Zipkin data source.
Symptoms:
${traceId}) instead of the actual valueSolutions:
To capture detailed error information for troubleshooting:
Set the Grafana log level to debug in the configuration file:
[log]
level = debug
Review logs in /var/log/grafana/grafana.log (or your configured log location).
Look for Zipkin-specific entries that include request and response details, such as:
Failed to close response bodyAn error occurred while doing a resource callAn error occurred while processing response from resource callReset the log level to info after troubleshooting to avoid excessive log volume.
If you've tried these solutions and still encounter issues: