test(monitor): verify historical and current metrics are consistent
This commit is contained in:
parent
fd9655bc35
commit
c30b881239
|
@ -429,6 +429,21 @@ t_persistent_session_stats(Config) ->
|
||||||
?ON(N1, request(["monitor_current"]))
|
?ON(N1, request(["monitor_current"]))
|
||||||
)
|
)
|
||||||
end),
|
end),
|
||||||
|
%% Verify that historical metrics are in line with the current ones.
|
||||||
|
?assertMatch(
|
||||||
|
{ok, [
|
||||||
|
#{
|
||||||
|
<<"time_stamp">> := _,
|
||||||
|
<<"connections">> := 3,
|
||||||
|
<<"disconnected_durable_sessions">> := 1,
|
||||||
|
<<"topics">> := 8,
|
||||||
|
<<"subscriptions">> := 8,
|
||||||
|
<<"subscriptions_ram">> := 4,
|
||||||
|
<<"subscriptions_durable">> := 4
|
||||||
|
}
|
||||||
|
]},
|
||||||
|
?ON(N1, request(["monitor"], "latest=1"))
|
||||||
|
),
|
||||||
{ok, {ok, _}} =
|
{ok, {ok, _}} =
|
||||||
?wait_async_action(
|
?wait_async_action(
|
||||||
emqtt:disconnect(PSClient2),
|
emqtt:disconnect(PSClient2),
|
||||||
|
|
Loading…
Reference in New Issue