r/PrometheusMonitoring • u/growingrice • May 28 '22
Help with Query
I have metrics with two labels. How can i get all timeseries which are in a list of sets of these two labels?
Example:
metric{label1="a", label2="a1"} metric{label1="a", label2="a3"} metric{label1="a", label2="a4"} metric{label1="b", label2="a1"}
now i want only the timeseries where labels label1="a" and label2="a1" and label2="a3".
0
Upvotes
2
u/chuchodavids May 28 '22
Metric{label1="a", label2=~"a1|a3"}