Troubleshooting OpenTelemetry Demo Project
When encountering issues during the development, deployment, or usage of the OpenTelemetry demo project, the following troubleshooting options are available, with examples and references to the official documentation.
- OpenTelemetry Collector Receiver issues
If your telemetry client generated data but it hasn’t been received by your backend, use the metric otelcol_receiver_accepted_spans
to ensure that the data point has been received by the Collector. If you expect a data point to have been counted as part of this metric but hasn’t, check the metric otelcol_receiver_refused_spans
to ensure it wasn’t refused by the Collector.
Source: https://grafana.com/docs/opentelemetry/collector/troubleshooting/#receiver-issues
- Sending test data
For certain types of issues, particularly verifying configuration and debugging network issues, it can be helpful to send a small amount of data to a collector configured to output to local logs.
Source: https://opentelemetry.io/docs/collector/troubleshooting/#sending-test-data
- Checklist for debugging complex pipelines
It can be difficult to isolate problems when telemetry flows through multiple collectors and networks. For each “hop” of telemetry data through a collector or other component in your telemetry pipeline, it’s important to verify the health and performance.
Source: https://opentelemetry.io/docs/collector/troubleshooting/#checklist-for-debugging-complex-pipelines
- Enable Logging
OpenTelemetry JS will by default not log anything to its diagnostic logger. Most issues can be diagnosed by enabling logging.
Source: https://grafana.com/docs/agent/latest/static/configuration/traces-config/#enable-logging
- Check the configuration file
Check the configuration file for any misconfigurations or errors. The configuration file is located at /etc/otelcol/config.yaml
.
- Check the status of the OpenTelemetry Collector
Use the command sudo systemctl status otelcol
to check the status of the OpenTelemetry Collector.
- Check the OpenTelemetry documentation
The OpenTelemetry documentation provides a comprehensive guide to troubleshooting issues that may arise during development, deployment, or usage.
Source: https://opentelemetry.io/docs/collector/troubleshooting/
- Check the Grafana documentation
The Grafana documentation provides a comprehensive guide to troubleshooting the OpenTelemetry Collector.
Source: https://grafana.com/docs/opentelemetry/collector/troubleshooting/