/api/v1/label/port/values <http://localhost:9090/api/v1/label/port/values> 
returns 
data for old timeseries because:

(1) those timeseries do exist in the database - even though they might not 
have a value at the current instant - and you might want to draw graphs of 
them.
(2) you might have some active and some inactive timeseries both with the 
same label="value"

If you want to find all label values for active series only, then you can 
make an instant query 
<https://prometheus.io/docs/prometheus/latest/querying/api/#instant-queries> 
for a specific metric and look at the labels returned:
/api/v1/query?query=foo

Just remember that if a particular endpoint has a glitch and is missed in a 
scrape, you won't see its labels.

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/7121fd52-2141-4cd9-a8ea-80cacb33a74f%40googlegroups.com.

Reply via email to