til icon indicating copy to clipboard operation
til copied to clipboard

How to get all metric names by job_name from Prometheus server

Open xluffy opened this issue 1 year ago • 0 comments

curl -XGET -G 'http://localhost:18080/api/v1/label/__name__/values' \
--data-urlencode 'match[]={__name__=~".+", job="kubernetes-pods"}' | tr "," "\n"

xluffy avatar Feb 05 '24 08:02 xluffy