Replies: 6 comments 3 replies
-
I don't know how collections are usually exposed as labels in Prometheus, #10670 uses a comma-separated list of tags. |
Beta Was this translation helpful? Give feedback.
-
@michaelklishin good point. Prometheus allows only string type labels. So exposing them as a comma-separated list of tags probably is the only option. Furthermore, RabbitMQ virtual host Also would be nice to expose another metric (e.g. rabbitmq_cluster_vhost_tag_status) which would allow to get vhosts by parsed tag from the list.
Then users are able to append only the required tag or a comma-separated list of tags into metrics:
|
Beta Was this translation helpful? Give feedback.
-
RabbitMQ virtual host tags do have rules: the provided value can either be a list (when created programmatically) or a comma-separated list of values (on the CLI). |
Beta Was this translation helpful? Give feedback.
-
There is no such thing as a "virtual host tag status" in RabbitMQ. Virtual host status, sure. Virtual host metadata? OK. But tags do not have any status, they are either present or not. Honestly, I haven't signed up for reworking our metrics around virtual hosts. If tags as a collection are not practically useful then the issue should be rewritten to explain what format would be. The more different it is from what we currently have, the higher are the changes that it will have to wait for 4.0 or won't be addressed at all. |
Beta Was this translation helpful? Give feedback.
-
Moved to a discussion because this is not an actionable issue as it is.
suggests that if the list of tags were a single string, this would still be practical for the sake of filtering/alerting. Am I correct about this? if so, a command-separated list for label value would do, and #10670 can be finished largely as it is. |
Beta Was this translation helpful? Give feedback.
-
I'd vote for solving this externally. If there's no natural way of mapping this info, there's always an option to build a separate source of data/metrics that provide vhost-owner mapping and then "merge" (multiply/rewrite) the data to enrich the metrics exposed by RabbitMQ with additional labels, similar to how |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
When a new virtual host is being created, a user can provide not only name, but also description and tags. Description and tags later are not visible in the GUI, but can be retrieved via
/api/definitions/{vhost}
API endpoint:However, the same data is not available using RabbitMQ monitoring tools like Prometheus. This limitation allows filtering only by vhost name. Sometimes that is a big disadvantageous when creating Prometheus alerting rules because filtering is only available by vhost name and can't be achieved by vhost tags or description.
Describe the solution you'd like
Get RabbitMQ virtual host tags and description data when querying rabbitmq_cluster_vhost_status metric via Prometheus.
Describe alternatives you've considered
No response
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions