@@ -73,7 +73,7 @@ groups() ->
73
73
exchange_bindings_metric ,
74
74
exchange_names_metric ,
75
75
stream_pub_sub_metrics ,
76
- raft_detailed_metrics_test
76
+ detailed_raft_metrics_test
77
77
]},
78
78
{special_chars , [], [core_metrics_special_chars ]},
79
79
{authentication , [], [basic_auth ]}
@@ -856,24 +856,24 @@ core_metrics_special_chars(Config) ->
856
856
maps :to_list (LabelValue3 )),
857
857
ok .
858
858
859
- raft_detailed_metrics_test (Config ) ->
859
+ detailed_raft_metrics_test (Config ) ->
860
860
ComponentMetrics = #{#{module => " ra_log_wal" , ra_system => " coordination" } => [" 1.0" ],
861
861
#{module => " ra_log_wal" , ra_system => " quorum_queues" } => [" 1.0" ]},
862
862
QQMetrics = #{#{queue => " a_quorum_queue" , vhost => " /" } => [" 1.0" ]},
863
863
864
- {_ , Body1 } = http_get_with_pal (Config , " /metrics/detailed?family=raft_metrics &vhost=foo" , [], 200 ),
864
+ {_ , Body1 } = http_get_with_pal (Config , " /metrics/detailed?family=ra_metrics &vhost=foo" , [], 200 ),
865
865
% % no queues in vhost foo, so no QQ metrics
866
866
? assertEqual (ComponentMetrics ,
867
- map_get (rabbitmq_raft_detailed_wal_files , parse_response (Body1 ))),
867
+ map_get (rabbitmq_detailed_raft_wal_files , parse_response (Body1 ))),
868
868
? assertEqual (undefined ,
869
- maps :get (rabbitmq_raft_detailed_term , parse_response (Body1 ), undefined )),
869
+ maps :get (rabbitmq_detailed_raft_term , parse_response (Body1 ), undefined )),
870
870
871
- {_ , Body2 } = http_get_with_pal (Config , " /metrics/detailed?family=raft_metrics &vhost=/" , [], 200 ),
871
+ {_ , Body2 } = http_get_with_pal (Config , " /metrics/detailed?family=ra_metrics &vhost=/" , [], 200 ),
872
872
% % there's a queue in vhost /
873
873
? assertEqual (ComponentMetrics ,
874
- map_get (rabbitmq_raft_detailed_wal_files , parse_response (Body2 ))),
874
+ map_get (rabbitmq_detailed_raft_wal_files , parse_response (Body2 ))),
875
875
? assertEqual (QQMetrics ,
876
- map_get (rabbitmq_raft_detailed_term , parse_response (Body2 ))),
876
+ map_get (rabbitmq_detailed_raft_term , parse_response (Body2 ))),
877
877
878
878
ok .
879
879
0 commit comments