How to get all the available metrics from prometheus

11 views
Skip to first unread message

Rajesh Reddy Nachireddi

unread,
Jul 9, 2020, 6:20:46 AM7/9/20
to Prometheus Users, Ben Kochie, Julius Volz

Hi,

we want to provide all the metric names to user.. similar to what we see in dropdown of prometheus console


image.png

Please, let us know which API to use to get this.

We have tried with api/v1/series?match[]= and /target related one..

and also we need the metric names where some label value is present (not just current state, anywhere in database in history)

Regards,
Rajesh

Brian Candler

unread,
Jul 9, 2020, 7:43:31 AM7/9/20
to Prometheus Users
The browser's Javascript console is very helpful for seeing what requests are made from a web page.  I see:

img1.png

Combining the prefix and path gives /api/v1/label/__name__/values
Reply all
Reply to author
Forward
0 new messages