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
Previous commits include new metrics on the `CLUTER_METRICS` group,
since those ones do not get aggregated and are only shown on under
the `/metrics/detailed` endpoint. However that group of metrics
correspond to cluster-wide metrics (that's why they don't need to
get aggregated) and therefore the new metrics we are providing do
not perfectly fit in that group. A new macro/group is provided by
this commit.
Copy file name to clipboardExpand all lines: deps/rabbitmq_prometheus/src/collectors/prometheus_rabbitmq_core_metrics_collector.erl
+18-12Lines changed: 18 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -214,17 +214,8 @@
214
214
]}
215
215
]).
216
216
217
-
%% Metrics that can be only requested through `/metrics/detailed`
218
-
-define(METRICS_CLUSTER,[
219
-
{vhost_status, [
220
-
{2, undefined, vhost_status, gauge, "Whether a given vhost is running"}
221
-
]},
222
-
{exchange_bindings, [
223
-
{2, undefined, exchange_bindings, gauge, "Number of bindings for an exchange. This value is cluster-wide."}
224
-
]},
225
-
{exchange_names, [
226
-
{2, undefined, exchange_name, gauge, "Enumerates exchanges without any additional info. This value is cluster-wide. A cheaper alternative to `exchange_bindings`"}
227
-
]},
217
+
%% Non aggregable detailed metrics
218
+
-define(METRICS_RAW_NON_AGGREGABLE, [
228
219
{queue_exchange_metrics, [
229
220
{2, undefined, queue_exchange_messages_published_total, counter, "Total number of messages published into a queue through an exchange"}
230
221
]},
@@ -242,7 +233,21 @@
242
233
{6, undefined, queue_messages_redelivered_total, counter, "Total number of messages redelivered from a queue to consumers"},
243
234
{7, undefined, queue_messages_acked_total, counter, "Total number of messages acknowledged by consumers on a queue"},
244
235
{8, undefined, queue_get_empty_total, counter, "Total number of times basic.get operations fetched no message on a queue"}
245
-
]}]).
236
+
]}
237
+
]).
238
+
239
+
%% Metrics that can be only requested through `/metrics/detailed`
240
+
-define(METRICS_CLUSTER,[
241
+
{vhost_status, [
242
+
{2, undefined, vhost_status, gauge, "Whether a given vhost is running"}
243
+
]},
244
+
{exchange_bindings, [
245
+
{2, undefined, exchange_bindings, gauge, "Number of bindings for an exchange. This value is cluster-wide."}
246
+
]},
247
+
{exchange_names, [
248
+
{2, undefined, exchange_name, gauge, "Enumerates exchanges without any additional info. This value is cluster-wide. A cheaper alternative to `exchange_bindings`"}
249
+
]}
250
+
]).
246
251
247
252
-define(TOTALS, [
248
253
%% ordering differs from metrics above, refer to list comprehension
0 commit comments