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

=== Config value:

    [{watchdog,<0.31061.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@05435e935dcc.2024-04-23_11.32.33/big_tests.tests.metrics_api_SUITE.logs/run.2024-04-23_11.41.28/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@05435e935dcc.2024-04-23_11.32.33/big_tests.tests.metrics_api_SUITE.logs/run.2024-04-23_11.41.28/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,iqdisc => parallel,backend => mnesia},
        mod_roster =>
            #{iqdisc => one_queue,backend => mnesia,versioning => false,
              store_current_id => false},
        mod_sic => #{iqdisc => one_queue},
        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_amp => #{},
        mod_disco =>
            #{iqdisc => one_queue,server_info => [],extra_domains => [],
              users_can_see_hidden_services => false},
        mod_presence => #{},
        mod_stream_management =>
            #{buffer => true,ack => true,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              backend => mnesia,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_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_carboncopy => #{iqdisc => no_queue}}},
     {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@05435e935dcc.2024-04-23_11.32.33"

=== Started at 2024-04-23 11:41:34


*** CT 2024-04-23 11:41:34.148 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_1806.html

*** User 2024-04-23 11:41:34.150 ***🔗
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-23 11:41:34.151 ***🔗
alicE@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='608a6f0927fbded1' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-23 11:41:34.151 ***🔗
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-23 11:41:34.151 ***🔗
alicE@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFAG1hdHlncnlzYQ==</auth>



*** User 2024-04-23 11:41:34.153 ***🔗
alicE@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-23 11:41:34.153 ***🔗
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-23 11:41:34.154 ***🔗
alicE@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cd6b736fc2a533a6' from='localhost' version='1.0' xml:lang='en' to='alice@localhost'>

*** User 2024-04-23 11:41:34.154 ***🔗
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-23 11:41:34.154 ***🔗
alicE@localhost/res1 out
<iq type='set' id='212dcac4e3ce33d6c5bb9269a41f6cbd'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-23 11:41:34.154 ***🔗
alicE@localhost/res1 in
<iq id='212dcac4e3ce33d6c5bb9269a41f6cbd' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 11:41:34.154 ***🔗
alice@localhost/res1 out
<iq type='set' id='97b70d4e230da68e3fb066b2757f4026'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 11:41:34.155 ***🔗
alice@localhost/res1 in
<iq from='localhost' to='alice@localhost/res1' id='97b70d4e230da68e3fb066b2757f4026' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 11:41:34.155 ***🔗
alice@localhost/res1 out
<presence/>



*** User 2024-04-23 11:41:34.156 ***🔗
alice@localhost/res1 in
<presence from='alice@localhost/res1' to='alice@localhost/res1'/>



*** User 2024-04-23 11:41:34.158 ***🔗
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-23 11:41:34.159 ***🔗
alicE@localhost/res2 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='30d42329fdd21e75' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-23 11:41:34.159 ***🔗
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-23 11:41:34.159 ***🔗
alicE@localhost/res2 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFAG1hdHlncnlzYQ==</auth>



*** User 2024-04-23 11:41:34.160 ***🔗
alicE@localhost/res2 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-23 11:41:34.160 ***🔗
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-23 11:41:34.160 ***🔗
alicE@localhost/res2 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='75752ce5328ac0a7' from='localhost' version='1.0' xml:lang='en' to='alice@localhost'>

*** User 2024-04-23 11:41:34.160 ***🔗
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-23 11:41:34.161 ***🔗
alicE@localhost/res2 out
<iq type='set' id='160fed9db0dcb5664a3200785c2862d1'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res2</resource>
	</bind>
</iq>



*** User 2024-04-23 11:41:34.161 ***🔗
alicE@localhost/res2 in
<iq id='160fed9db0dcb5664a3200785c2862d1' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice@localhost/res2</jid>
	</bind>
</iq>



*** User 2024-04-23 11:41:34.161 ***🔗
alice@localhost/res2 out
<iq type='set' id='5d5402a8fdd0c6ae1aa92fb3ee37747f'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 11:41:34.162 ***🔗
alice@localhost/res2 in
<iq from='localhost' to='alice@localhost/res2' id='5d5402a8fdd0c6ae1aa92fb3ee37747f' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 11:41:34.162 ***🔗
alice@localhost/res2 out
<presence/>



*** User 2024-04-23 11:41:34.163 ***🔗
alice@localhost/res2 in
<presence from='alice@localhost/res2' to='alice@localhost/res2'/>



*** User 2024-04-23 11:41:34.163 ***🔗
alice@localhost/res2 in
<presence from='alice@localhost/res1' to='alice@localhost/res2'>
	<delay xmlns='urn:xmpp:delay' stamp='2024-04-23T11:41:34.156068Z' from='alice@localhost/res1'/>
</presence>



*** User 2024-04-23 11:41:34.163 ***🔗
alice@localhost/res1 in
<presence from='alice@localhost/res2' to='alice@localhost/res1'/>



*** User 2024-04-23 11:41:34.163 ***🔗
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-23 11:41:34.165 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='948401a74bb91151' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-23 11:41:34.165 ***🔗
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-23 11:41:34.165 ***🔗
bOb@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYgBtYWtyb2xpa2E=</auth>



*** User 2024-04-23 11:41:34.165 ***🔗
bOb@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-23 11:41:34.165 ***🔗
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-23 11:41:34.166 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='46ca43cbcc1aedfb' from='localhost' version='1.0' xml:lang='en' to='bob@localhost'>

*** User 2024-04-23 11:41:34.166 ***🔗
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-23 11:41:34.166 ***🔗
bOb@localhost/res1 out
<iq type='set' id='d62d4848d6d606e187cf8d04cd7ff720'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-23 11:41:34.166 ***🔗
bOb@localhost/res1 in
<iq id='d62d4848d6d606e187cf8d04cd7ff720' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 11:41:34.167 ***🔗
bob@localhost/res1 out
<iq type='set' id='a400b44c4d1e15a0dfcbbbb957fe8513'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 11:41:34.169 ***🔗
bob@localhost/res1 in
<iq from='localhost' to='bob@localhost/res1' id='a400b44c4d1e15a0dfcbbbb957fe8513' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 11:41:34.169 ***🔗
bob@localhost/res1 out
<presence/>



*** User 2024-04-23 11:41:34.170 ***🔗
bob@localhost/res1 in
<presence from='bob@localhost/res1' to='bob@localhost/res1'/>



*** User 2024-04-23 11:41:35.177 ***🔗
REST request:
Code: 200
Req: {<0.31073.0>,<<"/api/metrics/global/totalSessionCount">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5dc8cc10f97569d3">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:41:34 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"22">>}],
         <<"{\"metric\":{\"value\":3}}">>,146,506}
Params: #{path => <<"/api/metrics/global/totalSessionCount">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,return_maps => true,
          return_headers => true}


*** User 2024-04-23 11:41:35.186 ***🔗
REST request:
Code: 200
Req: {<0.31075.0>,<<"/api/metrics/global/">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"58bef16eb4429c9d">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:41:34 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"4396">>}],
         <<"{\"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\":15147700,\"send_max\":69445,\"send_cnt\":33064,\"recv_oct\":9473753,\"recv_max\":1460,\"recv_cnt\":31518,\"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\":22,\"mean\":25,\"max\":38,\"999\":38,\"99\":38,\"95\":38,\"90\":28,\"75\":28,\"50\":22},\"backends.mod_roster.get_subscription_lists\":{\"n\":75,\"min\":6,\"median\":15,\"mean\":15,\"max\":36,\"999\":36,\"99\":36,\"95\":23,\"90\":20,\"75\":18,\"50\":15},\"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\":9,\"mean\":11,\"max\":26,\"999\":26,\"99\":26,\"95\":19,\"90\":16,\"75\":12,\"50\":9},\"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\":73391},\"erlang.memory\":{\"total\":144767952,\"system\":99636816,\"processes_used\":45621376,\"ets\":15225112,\"binary\":2799216,\"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\":344856,\"count\":344856},\"uniqueSessionCount\":{\"value\":2},\"backends.mod_last.calls.get_last\":{\"one\":1,\"count\":1},\"backends.mod_roster.get_roster_entry\":{\"n\":12,\"min\":3,\"median\":10,\"mean\":22,\"max\":69,\"999\":69,\"99\":69,\"95\":41,\"90\":41,\"75\":36,\"50\":10},\"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\":70,\"median\":120,\"mean\":127,\"max\":175,\"999\":175,\"99\":175,\"95\":175,\"90\":175,\"75\":156,\"50\":120},\"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\":315,\"min\":0,\"median\":112,\"mean\":162,\"max\":1460,\"999\":1460,\"99\":1460,\"95\":926,\"90\":230,\"75\":134,\"50\":112},\"data.xmpp.received.c2s.tcp\":{\"one\":201074,\"count\":201074},\"data.xmpp.sent.xml_stanza_size\":{\"n\":334,\"min\":16,\"median\":182,\"mean\":415,\"max\":8128,\"999\":8128,\"99\":6119,\"95\":728,\"90\":377,\"75\":217,\"50\":182},\"nodeUpTime\":{\"value\":571},\"backends.mod_vcard.calls.search\":{\"one\":0,\"count\":0},\"routingErrors\":{\"one\":0,\"count\":0},\"backends.mod_last.get_last\":{\"n\":3,\"min\":5,\"median\":5,\"mean\":5,\"max\":5,\"999\":5,\"99\":5,\"95\":5,\"90\":5,\"75\":5,\"50\":5},\"backends.mod_roster.calls.get_roster_entry\":{\"one\":21,\"count\":21}}}">>,
         4522,7736}
Params: #{path => <<"/api/metrics/global/">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,return_maps => true,
          return_headers => true}


*** User 2024-04-23 11:41:35.189 ***🔗
REST request:
Code: 200
Req: {<0.31077.0>,<<"/api/metrics/global/uniqueSessionCount">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f3981c1d5b6b50dd">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:41:34 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"22">>}],
         <<"{\"metric\":{\"value\":2}}">>,146,504}
Params: #{path => <<"/api/metrics/global/uniqueSessionCount">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,return_maps => true,
          return_headers => true}


*** User 2024-04-23 11:41:35.197 ***🔗
REST request:
Code: 200
Req: {<0.31079.0>,<<"/api/metrics/global/">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a00a3726e36cb74a">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:41:34 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"4396">>}],
         <<"{\"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\":15157908,\"send_max\":69445,\"send_cnt\":33068,\"recv_oct\":9474381,\"recv_max\":1460,\"recv_cnt\":31522,\"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\":22,\"mean\":25,\"max\":38,\"999\":38,\"99\":38,\"95\":38,\"90\":28,\"75\":28,\"50\":22},\"backends.mod_roster.get_subscription_lists\":{\"n\":75,\"min\":6,\"median\":15,\"mean\":15,\"max\":36,\"999\":36,\"99\":36,\"95\":23,\"90\":20,\"75\":18,\"50\":15},\"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\":9,\"mean\":11,\"max\":26,\"999\":26,\"99\":26,\"95\":19,\"90\":16,\"75\":12,\"50\":9},\"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\":73401},\"erlang.memory\":{\"total\":144800800,\"system\":99652376,\"processes_used\":45640912,\"ets\":15225112,\"binary\":2814536,\"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\":344856,\"count\":344856},\"uniqueSessionCount\":{\"value\":2},\"backends.mod_last.calls.get_last\":{\"one\":1,\"count\":1},\"backends.mod_roster.get_roster_entry\":{\"n\":12,\"min\":3,\"median\":10,\"mean\":22,\"max\":69,\"999\":69,\"99\":69,\"95\":41,\"90\":41,\"75\":36,\"50\":10},\"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\":70,\"median\":120,\"mean\":127,\"max\":175,\"999\":175,\"99\":175,\"95\":175,\"90\":175,\"75\":156,\"50\":120},\"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\":315,\"min\":0,\"median\":112,\"mean\":162,\"max\":1460,\"999\":1460,\"99\":1460,\"95\":926,\"90\":230,\"75\":134,\"50\":112},\"data.xmpp.received.c2s.tcp\":{\"one\":201074,\"count\":201074},\"data.xmpp.sent.xml_stanza_size\":{\"n\":334,\"min\":16,\"median\":182,\"mean\":415,\"max\":8128,\"999\":8128,\"99\":6119,\"95\":728,\"90\":377,\"75\":217,\"50\":182},\"nodeUpTime\":{\"value\":571},\"backends.mod_vcard.calls.search\":{\"one\":0,\"count\":0},\"routingErrors\":{\"one\":0,\"count\":0},\"backends.mod_last.get_last\":{\"n\":3,\"min\":5,\"median\":5,\"mean\":5,\"max\":5,\"999\":5,\"99\":5,\"95\":5,\"90\":5,\"75\":5,\"50\":5},\"backends.mod_roster.calls.get_roster_entry\":{\"one\":21,\"count\":21}}}">>,
         4522,6016}
Params: #{path => <<"/api/metrics/global/">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,return_maps => true,
          return_headers => true}


*** User 2024-04-23 11:41:35.199 ***🔗
REST request:
Code: 200
Req: {<0.31081.0>,<<"/api/metrics/global/nodeSessionCount">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ed127629737539a1">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:41:34 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"22">>}],
         <<"{\"metric\":{\"value\":3}}">>,146,478}
Params: #{path => <<"/api/metrics/global/nodeSessionCount">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,return_maps => true,
          return_headers => true}


*** User 2024-04-23 11:41:35.210 ***🔗
REST request:
Code: 200
Req: {<0.31083.0>,<<"/api/metrics/global/">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"aee91cad9359d26c">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:41:34 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"4396">>}],
         <<"{\"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\":15168116,\"send_max\":69445,\"send_cnt\":33072,\"recv_oct\":9475009,\"recv_max\":1460,\"recv_cnt\":31526,\"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\":22,\"mean\":25,\"max\":38,\"999\":38,\"99\":38,\"95\":38,\"90\":28,\"75\":28,\"50\":22},\"backends.mod_roster.get_subscription_lists\":{\"n\":75,\"min\":6,\"median\":15,\"mean\":15,\"max\":36,\"999\":36,\"99\":36,\"95\":23,\"90\":20,\"75\":18,\"50\":15},\"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\":9,\"mean\":11,\"max\":26,\"999\":26,\"99\":26,\"95\":19,\"90\":16,\"75\":12,\"50\":9},\"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\":73414},\"erlang.memory\":{\"total\":144746440,\"system\":99608776,\"processes_used\":45622072,\"ets\":15225112,\"binary\":2771720,\"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\":344856,\"count\":344856},\"uniqueSessionCount\":{\"value\":2},\"backends.mod_last.calls.get_last\":{\"one\":1,\"count\":1},\"backends.mod_roster.get_roster_entry\":{\"n\":12,\"min\":3,\"median\":10,\"mean\":22,\"max\":69,\"999\":69,\"99\":69,\"95\":41,\"90\":41,\"75\":36,\"50\":10},\"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\":70,\"median\":120,\"mean\":127,\"max\":175,\"999\":175,\"99\":175,\"95\":175,\"90\":175,\"75\":156,\"50\":120},\"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\":315,\"min\":0,\"median\":112,\"mean\":162,\"max\":1460,\"999\":1460,\"99\":1460,\"95\":926,\"90\":230,\"75\":134,\"50\":112},\"data.xmpp.received.c2s.tcp\":{\"one\":201074,\"count\":201074},\"data.xmpp.sent.xml_stanza_size\":{\"n\":334,\"min\":16,\"median\":182,\"mean\":415,\"max\":8128,\"999\":8128,\"99\":6119,\"95\":728,\"90\":377,\"75\":217,\"50\":182},\"nodeUpTime\":{\"value\":571},\"backends.mod_vcard.calls.search\":{\"one\":0,\"count\":0},\"routingErrors\":{\"one\":0,\"count\":0},\"backends.mod_last.get_last\":{\"n\":3,\"min\":5,\"median\":5,\"mean\":5,\"max\":5,\"999\":5,\"99\":5,\"95\":5,\"90\":5,\"75\":5,\"50\":5},\"backends.mod_roster.calls.get_roster_entry\":{\"one\":21,\"count\":21}}}">>,
         4522,8618}
Params: #{path => <<"/api/metrics/global/">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,return_maps => true,
          return_headers => true}


*** User 2024-04-23 11:41:35.210 ***🔗
bob@localhost/res1 out
</stream:stream>

*** User 2024-04-23 11:41:35.211 ***🔗
bob@localhost/res1 in
</stream:stream>

*** User 2024-04-23 11:41:35.211 ***🔗
alice@localhost/res2 out
</stream:stream>

*** User 2024-04-23 11:41:35.211 ***🔗
alice@localhost/res2 in
</stream:stream>

*** User 2024-04-23 11:41:35.211 ***🔗
alice@localhost/res1 out
</stream:stream>

*** User 2024-04-23 11:41:35.212 ***🔗
alice@localhost/res1 in
</stream:stream>
*** CT 2024-04-23 11:41:35.213 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_1806.html



=== Ended at 2024-04-23 11:41:35
=== successfully completed test case
=== === Returned value: ok


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