Prometheus 如何查询包含特定单词的队列

Prometheus 如何查询包含特定单词的队列,prometheus,grafana,promql,Prometheus,Grafana,Promql,我所做的是: rabbitmq_queue_messages_published{queue="Specific.Queue.String.With.TheWord.Apple"} 获取Specific.Queue.String.With.TheWord.Apple队列中发布的邮件数 但是我喜欢。。。我想看的50个队列,它们的共同点是队列名称中有这个词 如何查询使用此特定单词在队列中发布的邮件数?使用: 请注意,*必须添加到单词的两侧,因为普罗米修斯会自动添加到regex

我所做的是:

rabbitmq_queue_messages_published{queue="Specific.Queue.String.With.TheWord.Apple"} 
获取
Specific.Queue.String.With.TheWord.Apple
队列中发布的邮件数

但是我喜欢。。。我想看的50个队列,它们的共同点是队列名称中有这个词

如何查询使用此特定单词在队列中发布的邮件数?

使用:

请注意,
*
必须添加到
单词的两侧,因为普罗米修斯会自动添加到regexp。即,它将
regexp
转换为
^(?:regexp)$

rabbitmq_queue_messages_published{queue=~".*TheWord.*"}