__name__ is a meta-label which you match just like any other label. To
match on two labels at once, you use {foo="a",bar="b"}
See:
https://prometheus.io/docs/prometheus/latest/querying/basics/#time-series-selectors
In your case it would be:
{__name__=~"memo_.*_memberlist",job="x"}
Note: it's rare in practice that you need to match on the metric name in
this way. It could suggest your metrics are set up wrongly: something
which ought to be a label has been put in the metric name.
See: https://prometheus.io/docs/practices/naming/
>
--
You received this message because you are subscribed to the Google Groups
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/4d7fa205-9b08-4e10-9b51-f7e68504263ao%40googlegroups.com.