Hi, you can use PromQL function last over time. Here I answered the question how (I understand) it works, so it might be a good solution for you
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| How to keep last non-zero metric value in Prometheus/Grafana? | 0 | 120 | September 16, 2025 | |
| Data is present, but not available for the current timestamp | 2 | 991 | February 2, 2022 | |
| Table: Last data timestamp from instance | 1 | 4275 | September 2, 2021 | |
| 'No Data' is coming in Grafana after there is no metrics generated for last few days even though there is data before and time selected is from the beginning | 0 | 737 | January 26, 2022 | |
| How can Grafana OSS visualize historical metrics when Prometheus only stores real-time data? | 5 | 109 | December 2, 2025 |