You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RabbitMQ offers a dedicated endpoint, `/metrics/per-object`, which always returns per-object metrics, regardless of the value of `prometheus.return_per_object_metrics`.
503
-
You can therefore keep the default value of `prometheus.return_per_object_metrics`, which is `false`, and still scrape per-object metrics when necessary, by setting `metrics_path = /metrics/per-object` in the Prometheus target configuration (check [Prometheus Documentation](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config) for additional information).
502
+
RabbitMQ offers a dedicated endpoint, `/metrics/per-object`, which always returns per-object metrics,
503
+
regardless of the value of `prometheus.return_per_object_metrics`.
504
+
You can therefore keep the default value of `prometheus.return_per_object_metrics`,
505
+
which is `false`, and still scrape per-object metrics when necessary, by setting `metrics_path = /metrics/per-object` in the Prometheus target configuration (check [Prometheus Documentation](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config) for additional information).
| rabbitmq_detailed_auth_attempts_failed_total | Total number of failed authentication attempts |
603
607
604
608
605
-
Group `auth_attempt_detailed_metrics` (when aggregated, it produces the same numbers as `auth_attempt_metrics` - so it's mutually exclusive with it in the aggregation mode):
609
+
Grouped under `auth_attempt_detailed_metrics`. When aggregated, these add up to the same numbers as `auth_attempt_metrics`.
@@ -630,17 +636,18 @@ Group `queue_coarse_metrics`:
630
636
631
637
##### Per-queue consumer count
632
638
633
-
Group `queue_consumer_count`. This is a strict subset of `queue_metrics` which contains only a single metric (if both `queue_consumer_count` and `queue_metrics` are requested, the former will be automatically skipped):
639
+
Grouped under `queue_consumer_count`. This is a subset of `queue_metrics` which is skipped if `queue_metrics` are requested:
| rabbitmq_detailed_queue_consumers | Consumers on a queue |
638
644
639
-
This is one of the more telling metrics, and having it separately allows to skip some expensive operations for extracting/exposing the other metrics from the same datasource.
645
+
This metric is useful for quickly detecting issues with consumers (e.g. when there are no consumers online).
646
+
This is why it is exposed separately.
640
647
641
648
##### Detailed queue metrics
642
649
643
-
Group `queue_metrics` contains all the metrics for every queue, and can be relatively expensive to produce:
650
+
Grouped under `queue_metrics`. This group contains all the metrics for every queue, and can be relatively expensive to produce:
@@ -663,23 +670,24 @@ Group `queue_metrics` contains all the metrics for every queue, and can be relat
663
670
| rabbitmq_detailed_queue_disk_reads_total | Total number of times queue read messages from disk |
664
671
| rabbitmq_detailed_queue_disk_writes_total | Total number of times queue wrote messages to disk |
665
672
666
-
Tests show that performance difference between it and `queue_consumer_count` is approximately 8 times. E.g. on a test broker with 10k queues/producers/consumers, scrape time was ~8 second and ~1 respectively. So while it's expensive, it's not prohibitively so - especially compared to other metrics from per-connection/channel groups.
667
-
668
673
#### Connection/channel metrics
669
674
670
-
All of those include Erlang PID in their label, which is rarely useful when ingested into Prometheus. And they are most expensive to produce, the most resources are spent by `/metrics/per-object` on these.
675
+
All of those include the Erlang process ID of the channel in their label. This data is not particularly useful
676
+
and is only present to distinguish metrics of separate channels.
@@ -721,7 +729,7 @@ Group `channel_exchange_metrics`:
721
729
| rabbitmq_detailed_channel_messages_unroutable_returned_total | Total number of messages published as mandatory into an exchange and returned to the publisher as unroutable |
722
730
| rabbitmq_detailed_channel_messages_unroutable_dropped_total | Total number of messages published as non-mandatory into an exchange and dropped as unroutable |
| rabbitmq_cluster_exchange_name | Enumerates exchanges without any additional info. This value is cluster-wide. A cheaper alternative to `exchange_bindings`|
0 commit comments