til
til copied to clipboard
How to get all metric names by job_name from Prometheus server
curl -XGET -G 'http://localhost:18080/api/v1/label/__name__/values' \
--data-urlencode 'match[]={__name__=~".+", job="kubernetes-pods"}' | tr "," "\n"