Grafana version: 11.1.0
Browser:Chrome131.0.6778.86
First picture display exception,the graph should not be disconnected.
After i adjust time to last 30mins display back to normal.
Finally, i try to adjust to last 1 hour, display normal too.
This is grafana bugs or just setting problum?
Which settings do you have here:
please provide these dashboard for solving the problem.
• Connect null values ->Always
• Show points ->Always
• Connect Null Values:
In the settings (second image), the “Connect null values” option is set to Never. Change this to Always or Threshold based on your preference:
-
Always: Connects all points regardless of gaps in data.
-
Threshold: Connects points only if they are within a specific gap duration (configured in the data source or query).
-
Check the Query: Ensure the data query in Grafana doesn’t return null values where continuous data is expected. Use functions like COALESCE in SQL queries to replace null values with 0 or another default value:
SELECT time, COALESCE(value, 0) AS value
FROM your_table
WHERE …
• Data Source Configuration:
Ensure your data source settings (e.g., PostgreSQL or Prometheus) do not introduce null values due to irregular sampling or time gaps.
• Fill Missing Values:
In the visualization, enable the “Fill” option to ensure gaps are visually handled.