This is documentation for the next version of Grafana documentation. For the latest stable release, go to the latest version.
Troubleshoot general data source issues
This page provides solutions to common issues that apply across data sources in Grafana. For troubleshooting specific to a data source, refer to the troubleshooting page within each data source’s documentation.
Connection errors
These errors occur when Grafana can’t reach the data source backend.
“Connection refused” or timeout errors
Symptoms:
- Save & test fails with a connection error or timeout
- Panels show “error” or fail to load data
- Intermittent connectivity issues
Possible causes and solutions:
TLS/SSL errors
Symptoms:
- Errors mentioning “certificate,” “TLS handshake,” or “x509”
- Save & test fails with SSL-related messages
Solutions:
- Verify the data source is using a valid TLS certificate.
- If you’re using a self-signed certificate, enable Skip TLS Verify in the data source configuration (not recommended for production) or add the CA certificate to the list of trusted certificates in Grafana.
- Ensure the certificate hasn’t expired.
- Confirm the certificate’s Common Name or Subject Alternative Name matches the hostname in the data source URL.
Authentication errors
These errors occur when credentials are invalid, missing, or lack the required permissions.
“Unauthorized” or “Access denied”
Symptoms:
- Save & test fails with
401 Unauthorizedor403 Forbidden - Queries return access denied messages
- Drop-down menus don’t populate
Possible causes and solutions:
Query errors
These errors occur when executing queries against a properly connected data source.
“No data” or empty results
Symptoms:
- Queries execute without error but return no data
- Panels show “No data”
- Graphs are empty
Possible causes and solutions:
Query timeout
Symptoms:
- Queries run for a long time then fail
- Error messages mention timeout or query limits
Solutions:
- Narrow the dashboard time range to reduce the volume of data.
- Add filters to the query to reduce the result set.
- Break complex queries into smaller parts.
- Increase the data source timeout setting if your data source legitimately needs more time.
Data source configuration errors
“Save & test” fails after provisioning
Symptoms:
- Provisioned data sources fail the connection test
- Errors appear after deploying provisioning YAML files
Solutions:
- Verify the provisioning YAML syntax is correct. Refer to Provision data sources for the expected format.
- Ensure
secureJsonDatavalues (such as passwords, API keys, and tokens) are set correctly. These values can’t be read back after being saved. - Check that the provisioning file is in the correct directory and that Grafana has read access.
- Restart Grafana after making changes to provisioning files.
Data source disappears or resets
Symptoms:
- Data source changes revert after Grafana restarts
- Data source configuration can’t be saved through the UI
Solutions:
- Provisioned data sources can’t be edited through the UI. Make changes in the provisioning YAML file instead.
- Verify no other provisioning file is overwriting your data source configuration.
Enable debug logging
To capture detailed error information for troubleshooting:
Set the Grafana log level to
debugin the configuration file:[log] level = debugRestart Grafana for the change to take effect.
Reproduce the issue and review logs at
/var/log/grafana/grafana.log(or your configured log location).Look for entries related to your data source that include request and response details.
Reset the log level to
infoafter troubleshooting to avoid excessive log volume.
Get additional help
If the solutions on this page don’t resolve your issue:
- Check the troubleshooting page for your specific data source.
- Search the Grafana community forums for similar issues.
- Review Grafana GitHub issues for known bugs.
- Contact Grafana Support if you’re a Grafana Enterprise, Cloud Pro, or Cloud Advanced user.
When reporting issues, include:
- Grafana version and data source plugin version
- Exact error messages (redact sensitive information)
- Steps to reproduce the issue
- Relevant configuration (redact credentials)


