@@ -77,16 +77,16 @@ get_global_counters(Config, ProtoVer) ->
7777 get_global_counters (Config , ProtoVer , 0 ).
7878
7979get_global_counters (Config , ProtoVer , Node ) ->
80- get_global_counters (Config , ProtoVer , Node , [] ).
81-
82- get_global_counters (Config , v3 , Node , QType ) ->
83- get_global_counters (Config , ? MQTT_PROTO_V3 , Node , QType );
84- get_global_counters (Config , v4 , Node , QType ) ->
85- get_global_counters (Config , ? MQTT_PROTO_V4 , Node , QType );
86- get_global_counters (Config , v5 , Node , QType ) ->
87- get_global_counters (Config , ? MQTT_PROTO_V5 , Node , QType );
88- get_global_counters (Config , Proto , Node , QType ) ->
89- maps :get ([ {protocol , Proto }] ++ QType ,
80+ get_global_counters (Config , ProtoVer , Node , #{} ).
81+
82+ get_global_counters (Config , v3 , Node , Labels ) ->
83+ get_global_counters (Config , ? MQTT_PROTO_V3 , Node , Labels );
84+ get_global_counters (Config , v4 , Node , Labels ) ->
85+ get_global_counters (Config , ? MQTT_PROTO_V4 , Node , Labels );
86+ get_global_counters (Config , v5 , Node , Labels ) ->
87+ get_global_counters (Config , ? MQTT_PROTO_V5 , Node , Labels );
88+ get_global_counters (Config , Proto , Node , Labels ) ->
89+ maps :get (Labels # {protocol => Proto },
9090 rabbit_ct_broker_helpers :rpc (Config , Node , rabbit_global_counters , overview , [])).
9191
9292get_events (Node ) ->
0 commit comments