docs/sources/datasources/troubleshooting.md
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.
These errors occur when Grafana can't reach the data source backend.
Symptoms:
Possible causes and solutions:
| Cause | Solution |
|---|---|
| Incorrect URL | Verify the data source URL is correct, including the protocol (http:// or https://) and port number. |
| Network or firewall rules | Ensure the Grafana server can reach the data source endpoint. Check that firewall rules allow outbound traffic on the required port. |
| Data source is down | Verify the data source service is running and accepting connections. |
| DNS resolution failure | Confirm the hostname resolves correctly from the Grafana server. |
| Private network access | If the data source is on a private network and you're using Grafana Cloud, configure Private data source connect. |
Symptoms:
Solutions:
These errors occur when credentials are invalid, missing, or lack the required permissions.
Symptoms:
401 Unauthorized or 403 ForbiddenPossible causes and solutions:
| Cause | Solution |
|---|---|
| Invalid credentials | Double-check the username, password, API key, or token. Regenerate credentials if necessary. |
| Expired credentials | Create new credentials and update the data source configuration. |
| Insufficient permissions | Ensure the account or API key has the permissions required by the data source. Refer to the specific data source's documentation for required permissions. |
| Wrong authentication method | Verify you've selected the correct authentication type for your setup. |
These errors occur when executing queries against a properly connected data source.
Symptoms:
Possible causes and solutions:
| Cause | Solution |
|---|---|
| Time range doesn't contain data | Expand the dashboard time range or verify data exists in the data source for the selected period. |
| Incorrect query | Review the query syntax. Use the data source's query editor to build or validate the query. |
| Wrong data source selected | Verify you've selected the correct data source in the panel or Explore. |
| Permissions issue | Ensure the credentials have read access to the specific resource or index being queried. |
Symptoms:
Solutions:
Symptoms:
Solutions:
secureJsonData values (such as passwords, API keys, and tokens) are set correctly. These values can't be read back after being saved.Symptoms:
Solutions:
To capture detailed error information for troubleshooting:
Set the Grafana log level to debug in the configuration file:
[log]
level = debug
Restart 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 info after troubleshooting to avoid excessive log volume.
If the solutions on this page don't resolve your issue:
When reporting issues, include: