Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upHow can I retrieve a set of metrics #2161
Comments
This comment has been minimized.
This comment has been minimized.
tlex
commented
Nov 4, 2016
|
You could use regex:
the =~ selector announces that a regex follows The second option would be the or operator (allows to get not only the same metric with different labels, but also different metrics all together):
|
brian-brazil
closed this
Feb 13, 2017
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 24, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
lock
bot
locked and limited conversation to collaborators
Mar 24, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
mqliang commentedNov 4, 2016
•
edited
I use prometheus to collect monitoring information for kubernetes. And my profiling tool need to retrieve metrics for a set of pod, for example: all "container_cpu_usage_seconds_total" metrics with labels "kubernetes_pod_name=foo" or "kubernetes_pod_name=bar".
Is there anyway I can retrieve all the metrics I need with only one request?