Open siebenmann opened 2 years ago
Unable to reproduce this issue.
Key | Value |
---|---|
Panel | status-history @ 10.1.0-pre (d183a241e9) |
Grafana | 10.1.0-pre (d183a241e9) // Open Source |
Panel | \nstatus-history @ 10.1.0-pre (d183a241e9) | \n
---|---|
Queries | \nA[prometheus] | \n
Data | 1 frames, 2 fields, 241 rows |
Grafana | \n10.1.0-pre (d183a241e9) // Open Source | \n
Hi, @Develer this issue still persists. Here is a showcase url http://beta.fi.muni.cz:3000/a/xforman2-servermonitoring-app/drive Try to select Last 24 hours in Time Range and data are not rendered. Then try Last 2 days and you can see that there is timestamp within 24 hours
Last 24 hours: Last 2 days:
might be an issue with rendering a single timestamp?
the viz normally gets the width of the blocks by taking the delta between adjacent timestamps and multiplying by width factor. not really possible with one timestamp :)
we probably need a fallback derived from dashboard time range and some static block count, maybe 30-ish.
@leeoniya, I looked into it for a bit and there is one more calculation that occurs sooner. That is the calculation of xRange
. It also uses a similar procedure, taking the delta between the first two timestamps, when calculating the min and max values. As there is just one value, undefined values are returned. This causes other undefined values when calculating the width of blocks.
Now regarding the fix: I would like to fix this issue but I do not want to break anything important. Is it possible to get some max width value? If yes, would it be sufficient to check if there is just one timestamp and set the block width to the maximum value?
What happened: I'm trying to use the (beta) Status History panel type to display the state of Prometheus alerts over time. Frequently the result doesn't render at all, although the information is available and other panel types will show the information.
What you expected to happen: The Status History shows data and that data matches the information shown by other ways to visualize this information.
How to reproduce it (as minimally and precisely as possible): Add a Status History panel with a Prometheus data source that has some alerts that have fired over the time range you're looking at. A suitable query is
sum(max_over_time(ALERTS[$__interval])) by (alertname)
.Anything else we need to know?:
Environment: