If you are happy to list all the labels of interest (i.e. everything apart from the 'job' and 'instance' labels and any other labels you've added yourself):
count by (goversion,version,branch,revision) (agent_build_info) Or you can use "group by" instead of "count by" to get a value of 1 for everything (although personally I think the counts are useful!) On Thursday, 24 August 2023 at 16:05:17 UTC+1 Richie wrote: > or i suppose i could process the results as they come from the api via > python > > On Thursday, August 24, 2023 at 10:59:18 AM UTC-4 Richie wrote: > >> I would like to pull a line by line list of unique instances from >> agent_build_info and save it to a file for the purpose of cross checking >> via script against a list of known instances that should be monitored >> (reporting purposes). >> >> so in short is it possible to create a query that equivalent of *select >> distinct instance from agent_build_info --(were it a traditional table) * >> ? >> >> -Richie >> >> -- 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/7ba44400-ec40-4b21-9218-e69da11f077bn%40googlegroups.com.

