One way to retrieve the latest date value of a specific label from Prometheus and present it on Grafana is to use a Prometheus query to get the most recent data point for the matching label and then display it on a Grafana panel.
To do this, follow these steps:
max_over_time(metric_name{label_name="value"}[1h])
.This should display the latest date value of the specified label on the Grafana panel.
Asked: 2023-05-31 08:25:25 +0000
Seen: 15 times
Last updated: May 31 '23