Skip to content

Commit 4e23f8d

Browse files
committed
rabbit_prometheus_http_SUITE: Use another Erlang metric
[Why] It looks like `erlang_vm_dist_node_queue_size_bytes` is not always present, even though other Erlang-specific metrics are present. [How] The goal is to ensure Erlang metrics are present in the output, so just use another one that is likely to be there.
1 parent 1e41152 commit 4e23f8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deps/rabbitmq_prometheus/test/rabbit_prometheus_http_SUITE.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ identity_info_test(Config) ->
473473

474474
specific_erlang_metrics_present_test(Config) ->
475475
{_Headers, Body} = http_get_with_pal(Config, [], 200),
476-
?assertEqual(match, re:run(Body, "^erlang_vm_dist_node_queue_size_bytes{", [{capture, none}, multiline])).
476+
?assertEqual(match, re:run(Body, "^erlang_vm_dirty_io_schedulers ", [{capture, none}, multiline])).
477477

478478
global_metrics_present_test(Config) ->
479479
{_Headers, Body} = http_get_with_pal(Config, [], 200),

0 commit comments

Comments
 (0)