=== Test case: metrics_api_SUITE:session_counters/1 (click for source code)

=== Config value:

    [{watchdog,<0.31039.0>},
     {preset,"internal_mnesia"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/metrics_api_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@ab4da8ac41c7.2024-04-15_15.52.42/big_tests.tests.metrics_api_SUITE.logs/run.2024-04-15_16.01.02/metrics_api_suite.session_counters.html"},
     {tc_group_properties,[{name,global}]},
     {tc_group_path,[]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/metrics_api_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@ab4da8ac41c7.2024-04-15_15.52.42/big_tests.tests.metrics_api_SUITE.logs/run.2024-04-15_16.01.02/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,backend => mnesia,iqdisc => parallel},
        mod_roster =>
            #{backend => mnesia,iqdisc => one_queue,versioning => false,
              store_current_id => false},
        mod_sic => #{iqdisc => one_queue},
        mod_amp => #{},
        mod_register =>
            #{access => register,iqdisc => one_queue,
              registration_watchers => [],password_strength => 0,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
        mod_disco =>
            #{iqdisc => one_queue,users_can_see_hidden_services => false,
              server_info => [],extra_domains => []},
        mod_presence => #{},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => mnesia,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              buffer_max => 100,ack_freq => 1,resume_timeout => 600},
        mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        mod_carboncopy => #{iqdisc => no_queue},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false}}},
     {escalus_users,[{alice,[{username,<<"alicE">>},
                             {server,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"localhost">>},
                           {password,<<"makrolika">>}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@ab4da8ac41c7.2024-04-15_15.52.42"

=== Started at 2024-04-15 16:01:06


*** CT 2024-04-15 16:01:06.221 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_1810.html

*** User 2024-04-15 16:01:06.222 ***🔗
alicE@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-15 16:01:06.223 ***🔗
alicE@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='975ee9276e3d515a' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-15 16:01:06.223 ***🔗
alicE@localhost/res1 in
<stream:features>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-04-15 16:01:06.223 ***🔗
alicE@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFAG1hdHlncnlzYQ==</auth>



*** User 2024-04-15 16:01:06.224 ***🔗
alicE@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-15 16:01:06.224 ***🔗
alicE@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-15 16:01:06.224 ***🔗
alicE@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2895c9c85f02a09c' from='localhost' version='1.0' xml:lang='en' to='alice@localhost'>

*** User 2024-04-15 16:01:06.224 ***🔗
alicE@localhost/res1 in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-04-15 16:01:06.224 ***🔗
alicE@localhost/res1 out
<iq type='set' id='0070c777f003c929bfb8105776073ac0'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-15 16:01:06.225 ***🔗
alicE@localhost/res1 in
<iq id='0070c777f003c929bfb8105776073ac0' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-15 16:01:06.225 ***🔗
alice@localhost/res1 out
<iq type='set' id='3ac793d041ad987674d34d3a53bed33d'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-15 16:01:06.225 ***🔗
alice@localhost/res1 in
<iq from='localhost' to='alice@localhost/res1' id='3ac793d041ad987674d34d3a53bed33d' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-15 16:01:06.225 ***🔗
alice@localhost/res1 out
<presence/>



*** User 2024-04-15 16:01:06.226 ***🔗
alice@localhost/res1 in
<presence from='alice@localhost/res1' to='alice@localhost/res1'/>



*** User 2024-04-15 16:01:06.226 ***🔗
alicE@localhost/res2 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-15 16:01:06.227 ***🔗
alicE@localhost/res2 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b12b4c827ecb31be' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-15 16:01:06.227 ***🔗
alicE@localhost/res2 in
<stream:features>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-04-15 16:01:06.227 ***🔗
alicE@localhost/res2 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFAG1hdHlncnlzYQ==</auth>



*** User 2024-04-15 16:01:06.228 ***🔗
alicE@localhost/res2 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-15 16:01:06.228 ***🔗
alicE@localhost/res2 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-15 16:01:06.228 ***🔗
alicE@localhost/res2 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ec45044dc9af9333' from='localhost' version='1.0' xml:lang='en' to='alice@localhost'>

*** User 2024-04-15 16:01:06.228 ***🔗
alicE@localhost/res2 in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-04-15 16:01:06.228 ***🔗
alicE@localhost/res2 out
<iq type='set' id='7260a8875b07eebf2949efd491bc35a9'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res2</resource>
	</bind>
</iq>



*** User 2024-04-15 16:01:06.229 ***🔗
alicE@localhost/res2 in
<iq id='7260a8875b07eebf2949efd491bc35a9' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice@localhost/res2</jid>
	</bind>
</iq>



*** User 2024-04-15 16:01:06.229 ***🔗
alice@localhost/res2 out
<iq type='set' id='14c2927ad380b0d3284e8bbb760bca0d'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-15 16:01:06.229 ***🔗
alice@localhost/res2 in
<iq from='localhost' to='alice@localhost/res2' id='14c2927ad380b0d3284e8bbb760bca0d' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-15 16:01:06.229 ***🔗
alice@localhost/res2 out
<presence/>



*** User 2024-04-15 16:01:06.230 ***🔗
alice@localhost/res2 in
<presence from='alice@localhost/res1' to='alice@localhost/res2'>
	<delay xmlns='urn:xmpp:delay' stamp='2024-04-15T16:01:06.226016Z' from='alice@localhost/res1'/>
</presence>



*** User 2024-04-15 16:01:06.230 ***🔗
alice@localhost/res2 in
<presence from='alice@localhost/res2' to='alice@localhost/res2'/>



*** User 2024-04-15 16:01:06.230 ***🔗
alice@localhost/res1 in
<presence from='alice@localhost/res2' to='alice@localhost/res1'/>



*** User 2024-04-15 16:01:06.231 ***🔗
bOb@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-15 16:01:06.231 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='aa69188cab5a13fe' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-15 16:01:06.232 ***🔗
bOb@localhost/res1 in
<stream:features>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-04-15 16:01:06.232 ***🔗
bOb@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYgBtYWtyb2xpa2E=</auth>



*** User 2024-04-15 16:01:06.232 ***🔗
bOb@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-15 16:01:06.232 ***🔗
bOb@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-15 16:01:06.233 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d31ffa304b38c2bb' from='localhost' version='1.0' xml:lang='en' to='bob@localhost'>

*** User 2024-04-15 16:01:06.233 ***🔗
bOb@localhost/res1 in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-04-15 16:01:06.233 ***🔗
bOb@localhost/res1 out
<iq type='set' id='37d1a4d0db06f4c8379821d14d1aed42'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-15 16:01:06.233 ***🔗
bOb@localhost/res1 in
<iq id='37d1a4d0db06f4c8379821d14d1aed42' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-15 16:01:06.233 ***🔗
bob@localhost/res1 out
<iq type='set' id='78920de3fdb8cb003c14b33669628d5b'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-15 16:01:06.234 ***🔗
bob@localhost/res1 in
<iq from='localhost' to='bob@localhost/res1' id='78920de3fdb8cb003c14b33669628d5b' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-15 16:01:06.234 ***🔗
bob@localhost/res1 out
<presence/>



*** User 2024-04-15 16:01:06.234 ***🔗
bob@localhost/res1 in
<presence from='bob@localhost/res1' to='bob@localhost/res1'/>



*** User 2024-04-15 16:01:07.238 ***🔗
REST request:
Code: 200
Req: {<0.31051.0>,<<"/api/metrics/global/totalSessionCount">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0ab306b9b2d31d87">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 16:01:07 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"22">>}],
         <<"{\"metric\":{\"value\":3}}">>,146,439}
Params: #{path => <<"/api/metrics/global/totalSessionCount">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,return_maps => true,
          return_headers => true}


*** User 2024-04-15 16:01:07.243 ***🔗
REST request:
Code: 200
Req: {<0.31053.0>,<<"/api/metrics/global/">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"80ce7d07cd27d51a">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 16:01:07 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"4391">>}],
         <<"{\"metrics\":{\"data.xmpp.sent.component\":{\"one\":0,\"count\":0},\"data.xmpp.sent.c2s.websocket\":{\"one\":0,\"count\":0},\"data.dist\":{\"send_pend\":0,\"send_oct\":15163373,\"send_max\":69157,\"send_cnt\":33262,\"recv_oct\":9495918,\"recv_max\":1460,\"recv_cnt\":31888,\"connections\":2},\"node_cleanup\":{\"one\":1,\"count\":2},\"backends.ejabberd_auth_anonymous.does_anonymous_user_exist\":{\"n\":0,\"min\":0,\"median\":0,\"mean\":0,\"max\":0,\"999\":0,\"99\":0,\"95\":0,\"90\":0,\"75\":0,\"50\":0},\"backends.mod_roster.roster_subscribe_t\":{\"n\":6,\"min\":20,\"median\":29,\"mean\":30,\"max\":38,\"999\":38,\"99\":38,\"95\":38,\"90\":38,\"75\":38,\"50\":29},\"backends.mod_roster.get_subscription_lists\":{\"n\":63,\"min\":6,\"median\":10,\"mean\":10,\"max\":22,\"999\":22,\"99\":21,\"95\":18,\"90\":16,\"75\":12,\"50\":10},\"data.xmpp.sent.c2s.bosh\":{\"one\":0,\"count\":0},\"backends.mod_last.calls.set_last_info\":{\"one\":11,\"count\":11},\"data.xmpp.received.c2s.bosh\":{\"one\":0,\"count\":0},\"backends.mod_roster.calls.read_roster_version\":{\"one\":0,\"count\":0},\"backends.mod_roster.calls.get_subscription_lists\":{\"one\":110,\"count\":110},\"backends.mod_vcard.search\":{\"n\":0,\"min\":0,\"median\":0,\"mean\":0,\"max\":0,\"999\":0,\"99\":0,\"95\":0,\"90\":0,\"75\":0,\"50\":0},\"totalSessionCount\":{\"value\":3},\"backends.mod_roster.read_roster_version\":{\"n\":0,\"min\":0,\"median\":0,\"mean\":0,\"max\":0,\"999\":0,\"99\":0,\"95\":0,\"90\":0,\"75\":0,\"50\":0},\"backends.mod_roster.get_roster\":{\"n\":41,\"min\":2,\"median\":7,\"mean\":9,\"max\":23,\"999\":23,\"99\":23,\"95\":13,\"90\":11,\"75\":9,\"50\":7},\"data.xmpp.received.s2s\":{\"one\":0,\"count\":0},\"backends.mod_roster.calls.del_roster_t\":{\"one\":0,\"count\":0},\"processQueueLengths\":{\"total\":0,\"regular\":0,\"fsm\":0},\"clusterSize\":{\"value\":1},\"backends.mod_roster.calls.roster_subscribe_t\":{\"one\":10,\"count\":10},\"backends.mod_vcard.set_vcard\":{\"n\":0,\"min\":0,\"median\":0,\"mean\":0,\"max\":0,\"999\":0,\"99\":0,\"95\":0,\"90\":0,\"75\":0,\"50\":0},\"backends.ejabberd_auth_anonymous.calls.does_anonymous_user_exist\":{\"one\":0,\"count\":0},\"backends.mod_roster.calls.write_roster_version\":{\"one\":0,\"count\":0},\"backends.mod_roster.calls.update_roster_t\":{\"one\":0,\"count\":0},\"backends.mod_roster.update_roster_t\":{\"n\":0,\"min\":0,\"median\":0,\"mean\":0,\"max\":0,\"999\":0,\"99\":0,\"95\":0,\"90\":0,\"75\":0,\"50\":0},\"backends.mod_vcard.get_vcard\":{\"n\":0,\"min\":0,\"median\":0,\"mean\":0,\"max\":0,\"999\":0,\"99\":0,\"95\":0,\"90\":0,\"75\":0,\"50\":0},\"cache.unique_sessions_number\":{\"value\":2,\"ms_since_reset\":66249},\"erlang.memory\":{\"total\":145108688,\"system\":99602680,\"processes_used\":45999312,\"ets\":15223400,\"binary\":2767816,\"atom_used\":1291300},\"backends.mod_vcard.calls.get_vcard\":{\"one\":0,\"count\":0},\"erlang.system_info\":{\"process_limit\":262144,\"process_count\":2139,\"port_limit\":65536,\"port_count\":38,\"ets_limit\":8192},\"tcpPortsUsed\":{\"value\":31},\"data.xmpp.sent.c2s.tcp\":{\"one\":344864,\"count\":344864},\"uniqueSessionCount\":{\"value\":2},\"backends.mod_last.calls.get_last\":{\"one\":1,\"count\":1},\"backends.mod_roster.get_roster_entry\":{\"n\":12,\"min\":2,\"median\":8,\"mean\":20,\"max\":53,\"999\":53,\"99\":53,\"95\":40,\"90\":40,\"75\":37,\"50\":8},\"data.xmpp.sent.s2s\":{\"one\":0,\"count\":0},\"backends.mod_roster.calls.get_roster\":{\"one\":115,\"count\":115},\"backends.mod_roster.write_roster_version\":{\"n\":0,\"min\":0,\"median\":0,\"mean\":0,\"max\":0,\"999\":0,\"99\":0,\"95\":0,\"90\":0,\"75\":0,\"50\":0},\"nodeSessionCount\":{\"value\":3},\"backends.mod_last.set_last_info\":{\"n\":9,\"min\":61,\"median\":99,\"mean\":104,\"max\":142,\"999\":142,\"99\":142,\"95\":142,\"90\":131,\"75\":118,\"50\":99},\"data.xmpp.received.c2s.tls\":{\"one\":30907,\"count\":30907},\"data.xmpp.received.c2s.websocket\":{\"one\":0,\"count\":0},\"data.xmpp.received.component\":{\"one\":0,\"count\":0},\"backends.mod_vcard.calls.set_vcard\":{\"one\":0,\"count\":0},\"backends.mod_roster.del_roster_t\":{\"n\":0,\"min\":0,\"median\":0,\"mean\":0,\"max\":0,\"999\":0,\"99\":0,\"95\":0,\"90\":0,\"75\":0,\"50\":0},\"data.xmpp.sent.c2s.tls\":{\"one\":61420,\"count\":61420},\"data.xmpp.received.xml_stanza_size\":{\"n\":290,\"min\":0,\"median\":112,\"mean\":165,\"max\":1460,\"999\":1460,\"99\":1460,\"95\":1171,\"90\":198,\"75\":137,\"50\":112},\"data.xmpp.received.c2s.tcp\":{\"one\":201076,\"count\":201076},\"data.xmpp.sent.xml_stanza_size\":{\"n\":311,\"min\":16,\"median\":177,\"mean\":450,\"max\":8128,\"999\":8128,\"99\":3207,\"95\":487,\"90\":367,\"75\":211,\"50\":177},\"nodeUpTime\":{\"value\":541},\"backends.mod_vcard.calls.search\":{\"one\":0,\"count\":0},\"routingErrors\":{\"one\":0,\"count\":0},\"backends.mod_last.get_last\":{\"n\":3,\"min\":4,\"median\":4,\"mean\":4,\"max\":4,\"999\":4,\"99\":4,\"95\":4,\"90\":4,\"75\":4,\"50\":4},\"backends.mod_roster.calls.get_roster_entry\":{\"one\":21,\"count\":21}}}">>,
         4517,4071}
Params: #{path => <<"/api/metrics/global/">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,return_maps => true,
          return_headers => true}


*** User 2024-04-15 16:01:07.246 ***🔗
REST request:
Code: 200
Req: {<0.31055.0>,<<"/api/metrics/global/uniqueSessionCount">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2acf029c6d41a48c">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 16:01:07 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"22">>}],
         <<"{\"metric\":{\"value\":2}}">>,146,329}
Params: #{path => <<"/api/metrics/global/uniqueSessionCount">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,return_maps => true,
          return_headers => true}


*** User 2024-04-15 16:01:07.251 ***🔗
REST request:
Code: 200
Req: {<0.31057.0>,<<"/api/metrics/global/">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3e9eb179be33f025">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 16:01:07 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"4391">>}],
         <<"{\"metrics\":{\"data.xmpp.sent.component\":{\"one\":0,\"count\":0},\"data.xmpp.sent.c2s.websocket\":{\"one\":0,\"count\":0},\"data.dist\":{\"send_pend\":0,\"send_oct\":15173581,\"send_max\":69157,\"send_cnt\":33266,\"recv_oct\":9496546,\"recv_max\":1460,\"recv_cnt\":31892,\"connections\":2},\"node_cleanup\":{\"one\":1,\"count\":2},\"backends.ejabberd_auth_anonymous.does_anonymous_user_exist\":{\"n\":0,\"min\":0,\"median\":0,\"mean\":0,\"max\":0,\"999\":0,\"99\":0,\"95\":0,\"90\":0,\"75\":0,\"50\":0},\"backends.mod_roster.roster_subscribe_t\":{\"n\":6,\"min\":20,\"median\":29,\"mean\":30,\"max\":38,\"999\":38,\"99\":38,\"95\":38,\"90\":38,\"75\":38,\"50\":29},\"backends.mod_roster.get_subscription_lists\":{\"n\":63,\"min\":6,\"median\":10,\"mean\":10,\"max\":22,\"999\":22,\"99\":21,\"95\":18,\"90\":16,\"75\":12,\"50\":10},\"data.xmpp.sent.c2s.bosh\":{\"one\":0,\"count\":0},\"backends.mod_last.calls.set_last_info\":{\"one\":11,\"count\":11},\"data.xmpp.received.c2s.bosh\":{\"one\":0,\"count\":0},\"backends.mod_roster.calls.read_roster_version\":{\"one\":0,\"count\":0},\"backends.mod_roster.calls.get_subscription_lists\":{\"one\":110,\"count\":110},\"backends.mod_vcard.search\":{\"n\":0,\"min\":0,\"median\":0,\"mean\":0,\"max\":0,\"999\":0,\"99\":0,\"95\":0,\"90\":0,\"75\":0,\"50\":0},\"totalSessionCount\":{\"value\":3},\"backends.mod_roster.read_roster_version\":{\"n\":0,\"min\":0,\"median\":0,\"mean\":0,\"max\":0,\"999\":0,\"99\":0,\"95\":0,\"90\":0,\"75\":0,\"50\":0},\"backends.mod_roster.get_roster\":{\"n\":41,\"min\":2,\"median\":7,\"mean\":9,\"max\":23,\"999\":23,\"99\":23,\"95\":13,\"90\":11,\"75\":9,\"50\":7},\"data.xmpp.received.s2s\":{\"one\":0,\"count\":0},\"backends.mod_roster.calls.del_roster_t\":{\"one\":0,\"count\":0},\"processQueueLengths\":{\"total\":0,\"regular\":0,\"fsm\":0},\"clusterSize\":{\"value\":1},\"backends.mod_roster.calls.roster_subscribe_t\":{\"one\":10,\"count\":10},\"backends.mod_vcard.set_vcard\":{\"n\":0,\"min\":0,\"median\":0,\"mean\":0,\"max\":0,\"999\":0,\"99\":0,\"95\":0,\"90\":0,\"75\":0,\"50\":0},\"backends.ejabberd_auth_anonymous.calls.does_anonymous_user_exist\":{\"one\":0,\"count\":0},\"backends.mod_roster.calls.write_roster_version\":{\"one\":0,\"count\":0},\"backends.mod_roster.calls.update_roster_t\":{\"one\":0,\"count\":0},\"backends.mod_roster.update_roster_t\":{\"n\":0,\"min\":0,\"median\":0,\"mean\":0,\"max\":0,\"999\":0,\"99\":0,\"95\":0,\"90\":0,\"75\":0,\"50\":0},\"backends.mod_vcard.get_vcard\":{\"n\":0,\"min\":0,\"median\":0,\"mean\":0,\"max\":0,\"999\":0,\"99\":0,\"95\":0,\"90\":0,\"75\":0,\"50\":0},\"cache.unique_sessions_number\":{\"value\":2,\"ms_since_reset\":66256},\"erlang.memory\":{\"total\":145235688,\"system\":99596416,\"processes_used\":46133344,\"ets\":15223400,\"binary\":2759896,\"atom_used\":1291300},\"backends.mod_vcard.calls.get_vcard\":{\"one\":0,\"count\":0},\"erlang.system_info\":{\"process_limit\":262144,\"process_count\":2139,\"port_limit\":65536,\"port_count\":38,\"ets_limit\":8192},\"tcpPortsUsed\":{\"value\":31},\"data.xmpp.sent.c2s.tcp\":{\"one\":344864,\"count\":344864},\"uniqueSessionCount\":{\"value\":2},\"backends.mod_last.calls.get_last\":{\"one\":1,\"count\":1},\"backends.mod_roster.get_roster_entry\":{\"n\":12,\"min\":2,\"median\":8,\"mean\":20,\"max\":53,\"999\":53,\"99\":53,\"95\":40,\"90\":40,\"75\":37,\"50\":8},\"data.xmpp.sent.s2s\":{\"one\":0,\"count\":0},\"backends.mod_roster.calls.get_roster\":{\"one\":115,\"count\":115},\"backends.mod_roster.write_roster_version\":{\"n\":0,\"min\":0,\"median\":0,\"mean\":0,\"max\":0,\"999\":0,\"99\":0,\"95\":0,\"90\":0,\"75\":0,\"50\":0},\"nodeSessionCount\":{\"value\":3},\"backends.mod_last.set_last_info\":{\"n\":9,\"min\":61,\"median\":99,\"mean\":104,\"max\":142,\"999\":142,\"99\":142,\"95\":142,\"90\":131,\"75\":118,\"50\":99},\"data.xmpp.received.c2s.tls\":{\"one\":30907,\"count\":30907},\"data.xmpp.received.c2s.websocket\":{\"one\":0,\"count\":0},\"data.xmpp.received.component\":{\"one\":0,\"count\":0},\"backends.mod_vcard.calls.set_vcard\":{\"one\":0,\"count\":0},\"backends.mod_roster.del_roster_t\":{\"n\":0,\"min\":0,\"median\":0,\"mean\":0,\"max\":0,\"999\":0,\"99\":0,\"95\":0,\"90\":0,\"75\":0,\"50\":0},\"data.xmpp.sent.c2s.tls\":{\"one\":61420,\"count\":61420},\"data.xmpp.received.xml_stanza_size\":{\"n\":290,\"min\":0,\"median\":112,\"mean\":165,\"max\":1460,\"999\":1460,\"99\":1460,\"95\":1171,\"90\":198,\"75\":137,\"50\":112},\"data.xmpp.received.c2s.tcp\":{\"one\":201076,\"count\":201076},\"data.xmpp.sent.xml_stanza_size\":{\"n\":311,\"min\":16,\"median\":177,\"mean\":450,\"max\":8128,\"999\":8128,\"99\":3207,\"95\":487,\"90\":367,\"75\":211,\"50\":177},\"nodeUpTime\":{\"value\":541},\"backends.mod_vcard.calls.search\":{\"one\":0,\"count\":0},\"routingErrors\":{\"one\":0,\"count\":0},\"backends.mod_last.get_last\":{\"n\":3,\"min\":4,\"median\":4,\"mean\":4,\"max\":4,\"999\":4,\"99\":4,\"95\":4,\"90\":4,\"75\":4,\"50\":4},\"backends.mod_roster.calls.get_roster_entry\":{\"one\":21,\"count\":21}}}">>,
         4517,3711}
Params: #{path => <<"/api/metrics/global/">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,return_maps => true,
          return_headers => true}


*** User 2024-04-15 16:01:07.253 ***🔗
REST request:
Code: 200
Req: {<0.31059.0>,<<"/api/metrics/global/nodeSessionCount">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d166e5e94a0e59c4">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 16:01:07 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"22">>}],
         <<"{\"metric\":{\"value\":3}}">>,146,345}
Params: #{path => <<"/api/metrics/global/nodeSessionCount">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,return_maps => true,
          return_headers => true}


*** User 2024-04-15 16:01:07.257 ***🔗
REST request:
Code: 200
Req: {<0.31061.0>,<<"/api/metrics/global/">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"14a365d6042c6a03">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 16:01:07 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"4391">>}],
         <<"{\"metrics\":{\"data.xmpp.sent.component\":{\"one\":0,\"count\":0},\"data.xmpp.sent.c2s.websocket\":{\"one\":0,\"count\":0},\"data.dist\":{\"send_pend\":0,\"send_oct\":15183789,\"send_max\":69157,\"send_cnt\":33270,\"recv_oct\":9497174,\"recv_max\":1460,\"recv_cnt\":31896,\"connections\":2},\"node_cleanup\":{\"one\":1,\"count\":2},\"backends.ejabberd_auth_anonymous.does_anonymous_user_exist\":{\"n\":0,\"min\":0,\"median\":0,\"mean\":0,\"max\":0,\"999\":0,\"99\":0,\"95\":0,\"90\":0,\"75\":0,\"50\":0},\"backends.mod_roster.roster_subscribe_t\":{\"n\":6,\"min\":20,\"median\":29,\"mean\":30,\"max\":38,\"999\":38,\"99\":38,\"95\":38,\"90\":38,\"75\":38,\"50\":29},\"backends.mod_roster.get_subscription_lists\":{\"n\":63,\"min\":6,\"median\":10,\"mean\":10,\"max\":22,\"999\":22,\"99\":21,\"95\":18,\"90\":16,\"75\":12,\"50\":10},\"data.xmpp.sent.c2s.bosh\":{\"one\":0,\"count\":0},\"backends.mod_last.calls.set_last_info\":{\"one\":11,\"count\":11},\"data.xmpp.received.c2s.bosh\":{\"one\":0,\"count\":0},\"backends.mod_roster.calls.read_roster_version\":{\"one\":0,\"count\":0},\"backends.mod_roster.calls.get_subscription_lists\":{\"one\":110,\"count\":110},\"backends.mod_vcard.search\":{\"n\":0,\"min\":0,\"median\":0,\"mean\":0,\"max\":0,\"999\":0,\"99\":0,\"95\":0,\"90\":0,\"75\":0,\"50\":0},\"totalSessionCount\":{\"value\":3},\"backends.mod_roster.read_roster_version\":{\"n\":0,\"min\":0,\"median\":0,\"mean\":0,\"max\":0,\"999\":0,\"99\":0,\"95\":0,\"90\":0,\"75\":0,\"50\":0},\"backends.mod_roster.get_roster\":{\"n\":41,\"min\":2,\"median\":7,\"mean\":9,\"max\":23,\"999\":23,\"99\":23,\"95\":13,\"90\":11,\"75\":9,\"50\":7},\"data.xmpp.received.s2s\":{\"one\":0,\"count\":0},\"backends.mod_roster.calls.del_roster_t\":{\"one\":0,\"count\":0},\"processQueueLengths\":{\"total\":0,\"regular\":0,\"fsm\":0},\"clusterSize\":{\"value\":1},\"backends.mod_roster.calls.roster_subscribe_t\":{\"one\":10,\"count\":10},\"backends.mod_vcard.set_vcard\":{\"n\":0,\"min\":0,\"median\":0,\"mean\":0,\"max\":0,\"999\":0,\"99\":0,\"95\":0,\"90\":0,\"75\":0,\"50\":0},\"backends.ejabberd_auth_anonymous.calls.does_anonymous_user_exist\":{\"one\":0,\"count\":0},\"backends.mod_roster.calls.write_roster_version\":{\"one\":0,\"count\":0},\"backends.mod_roster.calls.update_roster_t\":{\"one\":0,\"count\":0},\"backends.mod_roster.update_roster_t\":{\"n\":0,\"min\":0,\"median\":0,\"mean\":0,\"max\":0,\"999\":0,\"99\":0,\"95\":0,\"90\":0,\"75\":0,\"50\":0},\"backends.mod_vcard.get_vcard\":{\"n\":0,\"min\":0,\"median\":0,\"mean\":0,\"max\":0,\"999\":0,\"99\":0,\"95\":0,\"90\":0,\"75\":0,\"50\":0},\"cache.unique_sessions_number\":{\"value\":2,\"ms_since_reset\":66262},\"erlang.memory\":{\"total\":145280128,\"system\":99650792,\"processes_used\":46125344,\"ets\":15223400,\"binary\":2813808,\"atom_used\":1291300},\"backends.mod_vcard.calls.get_vcard\":{\"one\":0,\"count\":0},\"erlang.system_info\":{\"process_limit\":262144,\"process_count\":2139,\"port_limit\":65536,\"port_count\":38,\"ets_limit\":8192},\"tcpPortsUsed\":{\"value\":31},\"data.xmpp.sent.c2s.tcp\":{\"one\":344864,\"count\":344864},\"uniqueSessionCount\":{\"value\":2},\"backends.mod_last.calls.get_last\":{\"one\":1,\"count\":1},\"backends.mod_roster.get_roster_entry\":{\"n\":12,\"min\":2,\"median\":8,\"mean\":20,\"max\":53,\"999\":53,\"99\":53,\"95\":40,\"90\":40,\"75\":37,\"50\":8},\"data.xmpp.sent.s2s\":{\"one\":0,\"count\":0},\"backends.mod_roster.calls.get_roster\":{\"one\":115,\"count\":115},\"backends.mod_roster.write_roster_version\":{\"n\":0,\"min\":0,\"median\":0,\"mean\":0,\"max\":0,\"999\":0,\"99\":0,\"95\":0,\"90\":0,\"75\":0,\"50\":0},\"nodeSessionCount\":{\"value\":3},\"backends.mod_last.set_last_info\":{\"n\":9,\"min\":61,\"median\":99,\"mean\":104,\"max\":142,\"999\":142,\"99\":142,\"95\":142,\"90\":131,\"75\":118,\"50\":99},\"data.xmpp.received.c2s.tls\":{\"one\":30907,\"count\":30907},\"data.xmpp.received.c2s.websocket\":{\"one\":0,\"count\":0},\"data.xmpp.received.component\":{\"one\":0,\"count\":0},\"backends.mod_vcard.calls.set_vcard\":{\"one\":0,\"count\":0},\"backends.mod_roster.del_roster_t\":{\"n\":0,\"min\":0,\"median\":0,\"mean\":0,\"max\":0,\"999\":0,\"99\":0,\"95\":0,\"90\":0,\"75\":0,\"50\":0},\"data.xmpp.sent.c2s.tls\":{\"one\":61420,\"count\":61420},\"data.xmpp.received.xml_stanza_size\":{\"n\":290,\"min\":0,\"median\":112,\"mean\":165,\"max\":1460,\"999\":1460,\"99\":1460,\"95\":1171,\"90\":198,\"75\":137,\"50\":112},\"data.xmpp.received.c2s.tcp\":{\"one\":201076,\"count\":201076},\"data.xmpp.sent.xml_stanza_size\":{\"n\":311,\"min\":16,\"median\":177,\"mean\":450,\"max\":8128,\"999\":8128,\"99\":3207,\"95\":487,\"90\":367,\"75\":211,\"50\":177},\"nodeUpTime\":{\"value\":541},\"backends.mod_vcard.calls.search\":{\"one\":0,\"count\":0},\"routingErrors\":{\"one\":0,\"count\":0},\"backends.mod_last.get_last\":{\"n\":3,\"min\":4,\"median\":4,\"mean\":4,\"max\":4,\"999\":4,\"99\":4,\"95\":4,\"90\":4,\"75\":4,\"50\":4},\"backends.mod_roster.calls.get_roster_entry\":{\"one\":21,\"count\":21}}}">>,
         4517,3592}
Params: #{path => <<"/api/metrics/global/">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,return_maps => true,
          return_headers => true}


*** User 2024-04-15 16:01:07.258 ***🔗
bob@localhost/res1 out
</stream:stream>

*** User 2024-04-15 16:01:07.258 ***🔗
bob@localhost/res1 in
</stream:stream>

*** User 2024-04-15 16:01:07.258 ***🔗
alice@localhost/res2 out
</stream:stream>

*** User 2024-04-15 16:01:07.258 ***🔗
alice@localhost/res2 in
</stream:stream>

*** User 2024-04-15 16:01:07.258 ***🔗
alice@localhost/res1 out
</stream:stream>

*** User 2024-04-15 16:01:07.258 ***🔗
alice@localhost/res1 in
</stream:stream>
*** CT 2024-04-15 16:01:07.260 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_1810.html



=== Ended at 2024-04-15 16:01:07
=== successfully completed test case
=== === Returned value: ok


Test run history | Top level test index | Latest test result