Closed oswardlx closed 10 months ago
Hi @oswardlx ,
You can modify this panel's relative time
in query options.
thanks! But there is another issue, when I increase the time range, the number of interface calls decreases
Hi @oswardlx , sorry for the late reply.
There is another option Max data points
when querying series with Range
type. Prometheus will merge data points for better performance, and the latest value shown on the panel will be processed as well. You can modify the Max data points
and run the query again, and you will find the value is changed. To get the actual latest value, you can query with the Instant
type.
Hi @oswardlx,
After some research, I found a better way to display the latest value and sparkline simultaneously in the Stat panel. Need to query with Both
type and use some transforms as follows. The updated dashboard is in the latest commit.
Check more details on the reply I wrote on Grafana Forum.
Can this statistical time range be longer, such as one year?