How to know which timeseries has got the latest value?

Viewed 22

I have a client that is exposing the same metric but with different labels depending on its status. For instance, I have the following time series and values scraped:

my_metric{status="Working"} 1
my_metric{status="Degraded", desc="x,y,z"} 2
my_metric{status="Absent"} 3

When I query via REST API: <endpoint>/query?query=my_metric

It gives me all the time series. How do I make sure which one is the latest scraped?

0 Answers
Related