Troubleshoot OpenTSDB data source issues
This document provides solutions to common issues you may encounter when configuring or using the OpenTSDB data source. For configuration instructions, refer to Configure the OpenTSDB data source.
Connection errors
These errors occur when Grafana can’t connect to the OpenTSDB server.
“Connection refused” or timeout errors
Symptoms:
- Save & test fails
- Queries return connection errors
- Intermittent timeouts
Possible causes and solutions:
To test connectivity manually, run:
curl http://<OPENTSDB_HOST>:4242/api/versionAuthentication errors
These errors occur when credentials are invalid or misconfigured.
“401 Unauthorized” or “403 Forbidden”
Symptoms:
- Save & test fails with authentication error
- Queries return authorization errors
Solutions:
- Verify that basic authentication credentials are correct in the data source configuration.
- Check that the OpenTSDB server is configured to accept the provided credentials.
- If using cookies for authentication, ensure the required cookies are listed in Allowed cookies.
Query errors
These errors occur when executing queries against OpenTSDB.
No data returned
Symptoms:
- Query executes without error but returns no data
- Panels show “No data” message
Possible causes and solutions:
Query timeout
Symptoms:
- Queries take a long time and then fail
- Error message mentions timeout
Solutions:
- Reduce the time range of your query.
- Add more specific tag filters to reduce the data volume.
- Increase the Timeout setting in the data source configuration.
- Enable downsampling to reduce the number of data points returned.
- Check OpenTSDB server performance and HBase health.
Autocomplete doesn’t work
Symptoms:
- No suggestions appear when typing metric names, tag names, or tag values
- Drop-down menus are empty
Solutions:
- Verify that the OpenTSDB
/api/suggestendpoint is accessible. Test it manually withcurl http://<OPENTSDB_HOST>:4242/api/suggest?type=metrics. - Increase the Lookup limit setting if you have many metrics or tags.
- Verify that the data source connection is working by clicking Save & test.
- Check that metrics exist in OpenTSDB. The suggest API only returns metrics that have been written to the database.
Template variables don’t populate
Symptoms:
- Template variable drop-down menus are empty
- Preview of values shows no results
Solutions:
- Enable real-time metadata tracking in OpenTSDB by setting
tsd.core.meta.enable_realtime_tstotruein your OpenTSDB configuration. - Sync existing metadata by running
tsdb uid metasyncon the OpenTSDB server. - Verify the variable query syntax is correct. Refer to Template variables for the correct syntax.
- Check that the data source connection is working.
Performance issues
These issues relate to slow queries or high resource usage.
Slow queries
Symptoms:
- Dashboards take a long time to load
- Queries are slow even for small time ranges
Solutions:
- Enable downsampling in the query editor to reduce data volume.
- Use more specific tag filters to limit the time series returned.
- Reduce the time range.
- Check OpenTSDB and HBase performance metrics.
- Consider increasing OpenTSDB heap size if memory is constrained.
HBase performance issues
OpenTSDB relies on HBase for data storage. Performance problems in HBase directly affect OpenTSDB query performance.
Solutions:
- Monitor HBase region server health and compaction status.
- Ensure sufficient heap memory is allocated to HBase region servers.
- Check for region hotspots and rebalance if necessary.
- Refer to the OpenTSDB troubleshooting guide for HBase-specific issues.
Enable debug logging
To capture detailed error information for troubleshooting:
Set the Grafana log level to
debugin the configuration file:[log] level = debugReview logs in
/var/log/grafana/grafana.log(or your configured log location).Look for OpenTSDB-specific entries that include request and response details.
Reset the log level to
infoafter troubleshooting to avoid excessive log volume.
Get additional help
If you’ve tried the solutions in this document and still encounter issues:
- Check the Grafana community forums for similar issues.
- Review OpenTSDB issues on GitHub for known bugs.
- Consult the OpenTSDB documentation for server-specific guidance.
- Contact Grafana Support if you’re a Grafana Enterprise, Cloud Pro, or Cloud Contracted user.
When reporting issues, include:
- Grafana version
- OpenTSDB version
- Error messages (redact sensitive information)
- Steps to reproduce
- Data source configuration (redact credentials)



