Skip to content

Commit

Permalink
Merge pull request #3563 from rabbitmq/mergify/bp/v3.8.x/pr-3561
Browse files Browse the repository at this point in the history
feat(prom): expose cluster id in identity (backport #3554) (backport #3561)
  • Loading branch information
michaelklishin authored Oct 12, 2021
2 parents 9a481e9 + 3c8bb1c commit 6e825e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ identity_info() ->
[
{rabbitmq_node, node()},
{rabbitmq_cluster, rabbit_nodes:cluster_name()}
{rabbitmq_cluster_permanent_id, rabbit_nodes:persistent_cluster_id()}
],
1
}]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ identity_info_test(Config) ->
?assertEqual(match, re:run(Body, "^rabbitmq_identity_info{", [{capture, none}, multiline])),
?assertEqual(match, re:run(Body, "rabbitmq_node=", [{capture, none}])),
?assertEqual(match, re:run(Body, "rabbitmq_cluster=", [{capture, none}])).
?assertEqual(match, re:run(Body, "rabbitmq_cluster_permanent_id=", [{capture, none}])).

specific_erlang_metrics_present_test(Config) ->
{_Headers, Body} = http_get_with_pal(Config, [], 200),
Expand Down

0 comments on commit 6e825e3

Please sign in to comment.