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
Copy file name to clipboardExpand all lines: deps/rabbitmq_prometheus/src/collectors/prometheus_rabbitmq_core_metrics_collector.erl
+66-7Lines changed: 66 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -189,7 +189,6 @@
189
189
{2, undefined, queue_disk_writes_total, counter, "Total number of times queue wrote messages to disk", disk_writes},
190
190
{2, undefined, stream_segments, counter, "Total number of stream segment files", segments}
191
191
]},
192
-
193
192
%%% Metrics that contain reference to a channel. Some of them also have
194
193
%%% a queue name, but in this case filtering on it doesn't make any
195
194
%%% sense, as the queue is not an object of interest here.
@@ -238,9 +237,32 @@
238
237
]},
239
238
240
239
{channel_queue_exchange_metrics, [
241
-
{2, undefined, queue_messages_published_total, counter, "Total number of messages published to queues"}
242
-
]}
243
-
]).
240
+
{2, undefined, queue_messages_published_total, counter, "Total number of messages published into a queue through an exchange on a channel"}
241
+
]},
242
+
243
+
%%% Metrics in the following 3 groups reference a queue and/or exchange.
244
+
%%% They each have a corresponding group in the above per-channel
245
+
%%% section but here the channel is not an object of interest.
246
+
{exchange_metrics, [
247
+
{2, undefined, exchange_messages_published_total, counter, "Total number of messages published into an exchange"},
248
+
{3, undefined, exchange_messages_confirmed_total, counter, "Total number of messages published into an exchange and confirmed"},
249
+
{4, undefined, exchange_messages_unroutable_returned_total, counter, "Total number of messages published as mandatory into an exchange and returned to the publisher as unroutable"},
250
+
{5, undefined, exchange_messages_unroutable_dropped_total, counter, "Total number of messages published as non-mandatory into an exchange and dropped as unroutable"}
251
+
]},
252
+
253
+
{queue_delivery_metrics, [
254
+
{2, undefined, queue_get_ack_total, counter, "Total number of messages fetched from a queue with basic.get in manual acknowledgement mode"},
255
+
{3, undefined, queue_get_total, counter, "Total number of messages fetched from a queue with basic.get in automatic acknowledgement mode"},
256
+
{4, undefined, queue_messages_delivered_ack_total, counter, "Total number of messages delivered from a queue to consumers in manual acknowledgement mode"},
257
+
{5, undefined, queue_messages_delivered_total, counter, "Total number of messages delivered from a queue to consumers in automatic acknowledgement mode"},
258
+
{6, undefined, queue_messages_redelivered_total, counter, "Total number of messages redelivered from a queue to consumers"},
259
+
{7, undefined, queue_messages_acked_total, counter, "Total number of messages acknowledged by consumers on a queue"},
260
+
{8, undefined, queue_get_empty_total, counter, "Total number of times basic.get operations fetched no message on a queue"}
261
+
]},
262
+
263
+
{queue_exchange_metrics, [
264
+
{2, undefined, queue_exchange_messages_published_total, counter, "Total number of messages published into a queue through an exchange"}
265
+
]}]).
244
266
245
267
%% Metrics that can be only requested through `/metrics/detailed`
0 commit comments