Troubleshoot Yugabyte data source issues
This document provides solutions to common issues you might encounter when you configure or use the Yugabyte data source. For configuration instructions, refer to Configure the Yugabyte data source.
Connection errors
These errors occur when Grafana can’t reach your YugabyteDB instance.
“Connection refused” or timeout errors
Symptoms:
- Save & test times out or fails with a network error.
- Queries fail with connection errors.
Possible causes and solutions:
“Missing port in address”
Symptoms:
- Save & test fails immediately with an error that mentions a missing port.
Solutions:
- Confirm the Host URL includes both the host and the port, for example
localhost:5433. - Don’t include a scheme such as
http://orhttps://in the Host URL.
Authentication errors
These errors occur when the database credentials are invalid or lack the required permissions.
“Password authentication failed”
Symptoms:
- Save & test fails with an authentication error.
- Queries fail with permission errors.
Possible causes and solutions:
Query errors
These errors occur when you run a query against the data source.
“No data” or empty results
Symptoms:
- A query runs without error but returns no data.
- Panels show a No data message.
Possible causes and solutions:
Query timeout or slow queries
Symptoms:
- A query runs for a long time and then fails.
- Panels are slow to load.
Solutions:
- Narrow the dashboard time range to reduce the amount of data scanned.
- Add
WHEREfilters to reduce the result set. - Add indexes in YugabyteDB for the columns used in filters and time ranges.
- Use
date_trunc()to aggregate rows into time buckets instead of returning raw rows. The$__timeGroup()macro isn’t compatible with YugabyteDB.
Results don’t render as a time series
Symptoms:
- A time-series panel shows the data as a table or fails to plot values.
Solutions:
- Set the query Format to Time series.
- Return a time-ordered column of
timeortimestamptype, aliasedAS time. - Return at least one numeric column, and sort the results by the time column in ascending order.
Timestamps appear shifted
Symptoms:
- Time-series values appear offset from the expected time by a fixed number of hours.
- Annotations or events display at different times than they occurred.
The data source reads timestamp columns, which don’t carry time zone information, as UTC. If your application stores local wall-clock times in timestamp columns, Grafana treats those values as UTC and displays them shifted by your time zone offset.
Solutions:
- Store timestamps in UTC, or use the
timestamptztype so values include time zone information. - Convert local timestamps in the query, for example
created_at AT TIME ZONE 'America/New_York' AS time. - Confirm the dashboard time zone in the time range options is set to the zone you expect.
Template variable errors
These errors occur when you use template variables with the data source.
Variables return no values
Solutions:
- Verify the data source connection by running Save & test on the configuration page.
- Confirm the variable query returns at least one column. Refer to Query return format.
- For chained variables, confirm that parent variables have valid selections.
Multi-value variables don’t match rows
Symptoms:
- A query that uses a multi-value variable with
INreturns no rows.
Solutions:
- Confirm you use the variable with the
INoperator and without extra quotes, for examplestatus IN ($status). - Remember that multi-value variables expand to a single-quoted list, so they’re intended for string columns. For numeric columns, cast the column or use string comparisons.
Private data source connect issues
These issues occur when you query a YugabyteDB instance through Private data source connect (PDC) on Grafana Cloud.
The Secure Socks Proxy toggle isn’t visible
Symptoms:
- The Additional Settings section on the configuration page is empty.
- You can’t find a PDC or Secure Socks Proxy Enabled option.
Solutions:
- Confirm the secure socks proxy is enabled for your Grafana instance. The toggle only appears when it’s enabled.
- On Grafana Cloud, confirm that Private data source connect is set up for your stack.
- On self-managed Grafana, enable the secure socks proxy in the Grafana configuration file, then restart Grafana. Refer to Configure the Yugabyte data source.
Connection fails only when a PDC network is selected
Solutions:
- Confirm that Private data source connect is set up and the PDC agent is running.
- Verify the PDC agent can reach the YugabyteDB host and port on the private network.
- Because host name resolution happens on the PDC side, confirm the host name resolves from the network where the PDC agent runs.
Enable debug logging
To capture detailed error information for troubleshooting:
Set the Grafana log level to
debugin the configuration file:[log] level = debugReview the Grafana server logs and look for entries from the
grafana-yugabyte-datasourceplugin 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 the Yugabyte data source plugin issues on GitHub for known bugs, and open an issue if needed.
- Consult the YugabyteDB documentation for database-specific guidance.
- When you report an issue, include:
- Your Grafana version and plugin version.
- The error message, with sensitive information redacted.
- Steps to reproduce.
- Relevant configuration, with credentials redacted.


