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

=== Config value:

    [{watchdog,<0.29418.0>},
     {preset,"ldap_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@6ebac22519b0.2024-02-23_08.34.56/big_tests.tests.metrics_api_SUITE.logs/run.2024-02-23_08.41.07/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@6ebac22519b0.2024-02-23_08.34.56/big_tests.tests.metrics_api_SUITE.logs/run.2024-02-23_08.41.07/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,
              ldap =>
                  #{filter => <<"(objectClass=inetOrgPerson)">>,
                    base => <<"ou=Users,dc=esl,dc=com">>,
                    uids => [{<<"uid">>,<<"%u">>}],
                    search_fields =>
                        [{<<"User">>,<<"%u">>},
                         {<<"Full Name">>,<<"displayName">>},
                         {<<"Given Name">>,<<"givenName">>},
                         {<<"Middle Name">>,<<"initials">>},
                         {<<"Family Name">>,<<"sn">>},
                         {<<"Nickname">>,<<"%u">>},
                         {<<"Birthday">>,<<"birthDay">>},
                         {<<"Country">>,<<"c">>},
                         {<<"City">>,<<"l">>},
                         {<<"Email">>,<<"mail">>},
                         {<<"Organization Name">>,<<"o">>},
                         {<<"Organization Unit">>,<<"ou">>}],
                    pool_tag => default,deref => never,
                    vcard_map =>
                        [{<<"NICKNAME">>,<<"%u">>,[]},
                         {<<"FN">>,<<"%s">>,[<<"displayName">>]},
                         {<<"FAMILY">>,<<"%s">>,[<<"sn">>]},
                         {<<"GIVEN">>,<<"%s">>,[<<"givenName">>]},
                         {<<"MIDDLE">>,<<"%s">>,[<<"initials">>]},
                         {<<"ORGNAME">>,<<"%s">>,[<<"o">>]},
                         {<<"ORGUNIT">>,<<"%s">>,[<<"ou">>]},
                         {<<"CTRY">>,<<"%s">>,[<<"c">>]},
                         {<<"LOCALITY">>,<<"%s">>,[<<"l">>]},
                         {<<"STREET">>,<<"%s">>,[<<"street">>]},
                         {<<"REGION">>,<<"%s">>,[<<"st">>]},
                         {<<"PCODE">>,<<"%s">>,[<<"postalCode">>]},
                         {<<"TITLE">>,<<"%s">>,[<<"title">>]},
                         {<<"URL">>,<<"%s">>,[<<"labeleduri">>]},
                         {<<"DESC">>,<<"%s">>,[<<"description">>]},
                         {<<"TEL">>,<<"%s">>,[<<"telephoneNumber">>]},
                         {<<"EMAIL">>,<<"%s">>,[<<"mail">>]},
                         {<<"BDAY">>,<<"%s">>,[<<"birthDay">>]},
                         {<<"ROLE">>,<<"%s">>,[<<"employeeType">>]},
                         {<<"PHOTO">>,<<"%s">>,[<<"jpegPhoto">>]}],
                    search_reported =>
                        [{<<"Full Name">>,<<"FN">>},
                         {<<"Given Name">>,<<"FIRST">>},
                         {<<"Middle Name">>,<<"MIDDLE">>},
                         {<<"Family Name">>,<<"LAST">>},
                         {<<"Nickname">>,<<"NICK">>},
                         {<<"Birthday">>,<<"BDAY">>},
                         {<<"Country">>,<<"CTRY">>},
                         {<<"City">>,<<"LOCALITY">>},
                         {<<"Email">>,<<"EMAIL">>},
                         {<<"Organization Name">>,<<"ORGNAME">>},
                         {<<"Organization Unit">>,<<"ORGUNIT">>}],
                    search_operator => 'and',binary_search_fields => []},
              backend => ldap,iqdisc => parallel},
        mod_roster =>
            #{backend => mnesia,iqdisc => one_queue,versioning => false,
              store_current_id => false},
        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_sic => #{iqdisc => one_queue},
        mod_presence => #{},
        mod_disco =>
            #{iqdisc => one_queue,users_can_see_hidden_services => false,
              server_info => [],extra_domains => []},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => mnesia,buffer_max => 100,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              ack_freq => 1,resume_timeout => 600},
        mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        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@6ebac22519b0.2024-02-23_08.34.56"

=== Started at 2024-02-23 08:41:12


*** CT 2024-02-23 08:41:12.658 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_1799.html

*** User 2024-02-23 08:41:12.660 ***🔗
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-02-23 08:41:12.661 ***🔗
alicE@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f1633d0a434227d8' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-02-23 08:41:12.661 ***🔗
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>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-02-23 08:41:12.661 ***🔗
alicE@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFAG1hdHlncnlzYQ==</auth>



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



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

*** User 2024-02-23 08:41:12.664 ***🔗
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-02-23 08:41:12.664 ***🔗
alicE@localhost/res1 out
<iq type='set' id='9f7079df7154675bc5879f23084789f5'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-02-23 08:41:12.665 ***🔗
alicE@localhost/res1 in
<iq id='9f7079df7154675bc5879f23084789f5' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-02-23 08:41:12.665 ***🔗
alice@localhost/res1 out
<iq type='set' id='754c8741e0ea83575ff1cc975715e8d5'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-23 08:41:12.665 ***🔗
alice@localhost/res1 in
<iq from='localhost' to='alice@localhost/res1' id='754c8741e0ea83575ff1cc975715e8d5' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-23 08:41:12.666 ***🔗
alice@localhost/res1 out
<presence/>



*** User 2024-02-23 08:41:12.666 ***🔗
alice@localhost/res1 in
<presence from='alice@localhost/res1' to='alice@localhost/res1'/>



*** User 2024-02-23 08:41:12.667 ***🔗
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-02-23 08:41:12.668 ***🔗
alicE@localhost/res2 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6f6fcf8a6be85449' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-02-23 08:41:12.668 ***🔗
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>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-02-23 08:41:12.668 ***🔗
alicE@localhost/res2 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFAG1hdHlncnlzYQ==</auth>



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



*** User 2024-02-23 08:41:12.669 ***🔗
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-02-23 08:41:12.670 ***🔗
alicE@localhost/res2 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5d83465cd6b670ba' from='localhost' version='1.0' xml:lang='en' to='alice@localhost'>

*** User 2024-02-23 08:41:12.670 ***🔗
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-02-23 08:41:12.670 ***🔗
alicE@localhost/res2 out
<iq type='set' id='30d483c071796052d37f53bfb8ce8ff6'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res2</resource>
	</bind>
</iq>



*** User 2024-02-23 08:41:12.670 ***🔗
alicE@localhost/res2 in
<iq id='30d483c071796052d37f53bfb8ce8ff6' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice@localhost/res2</jid>
	</bind>
</iq>



*** User 2024-02-23 08:41:12.670 ***🔗
alice@localhost/res2 out
<iq type='set' id='e72ddd57b2da5526ba50b23692e88216'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-23 08:41:12.671 ***🔗
alice@localhost/res2 in
<iq from='localhost' to='alice@localhost/res2' id='e72ddd57b2da5526ba50b23692e88216' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-23 08:41:12.671 ***🔗
alice@localhost/res2 out
<presence/>



*** User 2024-02-23 08:41:12.672 ***🔗
alice@localhost/res2 in
<presence from='alice@localhost/res1' to='alice@localhost/res2'>
	<delay xmlns='urn:xmpp:delay' stamp='2024-02-23T08:41:12.666486Z' from='alice@localhost/res1'/>
</presence>



*** User 2024-02-23 08:41:12.672 ***🔗
alice@localhost/res2 in
<presence from='alice@localhost/res2' to='alice@localhost/res2'/>



*** User 2024-02-23 08:41:12.672 ***🔗
alice@localhost/res1 in
<presence from='alice@localhost/res2' to='alice@localhost/res1'/>



*** User 2024-02-23 08:41:12.672 ***🔗
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-02-23 08:41:12.673 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='280b4c3c11ecff63' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-02-23 08:41:12.673 ***🔗
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>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-02-23 08:41:12.673 ***🔗
bOb@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYgBtYWtyb2xpa2E=</auth>



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



*** User 2024-02-23 08:41:12.674 ***🔗
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-02-23 08:41:12.675 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='77b75a4b29b39f10' from='localhost' version='1.0' xml:lang='en' to='bob@localhost'>

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



*** User 2024-02-23 08:41:12.675 ***🔗
bOb@localhost/res1 in
<iq id='9323b5ca2e7fe542772db30e6286a237' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-02-23 08:41:12.675 ***🔗
bob@localhost/res1 out
<iq type='set' id='103a381587e612d250743b97334bbe42'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-23 08:41:12.675 ***🔗
bob@localhost/res1 in
<iq from='localhost' to='bob@localhost/res1' id='103a381587e612d250743b97334bbe42' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-23 08:41:12.675 ***🔗
bob@localhost/res1 out
<presence/>



*** User 2024-02-23 08:41:12.676 ***🔗
bob@localhost/res1 in
<presence from='bob@localhost/res1' to='bob@localhost/res1'/>



*** User 2024-02-23 08:41:13.678 ***🔗
REST request:
Code: 200
Req: {<0.29430.0>,<<"/api/metrics/global/totalSessionCount">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"65067be495b54506">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 08:41:12 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"22">>}],
         <<"{\"metric\":{\"value\":3}}">>,146,416}
Params: #{path => <<"/api/metrics/global/totalSessionCount">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,return_maps => true,
          return_headers => true}


*** User 2024-02-23 08:41:13.683 ***🔗
REST request:
Code: 200
Req: {<0.29432.0>,<<"/api/metrics/global/">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5170227d14c80715">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 08:41:12 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"4388">>}],
         <<"{\"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\":12978723,\"send_max\":65580,\"send_cnt\":33255,\"recv_oct\":7859277,\"recv_max\":70305,\"recv_cnt\":24236,\"connections\":2},\"node_cleanup\":{\"one\":2,\"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\":21,\"median\":25,\"mean\":28,\"max\":38,\"999\":38,\"99\":38,\"95\":38,\"90\":33,\"75\":33,\"50\":25},\"backends.mod_roster.get_subscription_lists\":{\"n\":38,\"min\":7,\"median\":12,\"mean\":14,\"max\":45,\"999\":45,\"99\":45,\"95\":26,\"90\":21,\"75\":19,\"50\":12},\"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\":65,\"count\":65},\"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\":24,\"min\":5,\"median\":10,\"mean\":16,\"max\":29,\"999\":29,\"99\":29,\"95\":29,\"90\":28,\"75\":20,\"50\":10},\"data.xmpp.received.s2s\":{\"one\":0,\"count\":0},\"backends.mod_roster.calls.del_roster_t\":{\"one\":0,\"count\":0},\"processQueueLengths\":{\"total\":16,\"regular\":16,\"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\":57181},\"erlang.memory\":{\"total\":191280792,\"system\":134369024,\"processes_used\":57455968,\"ets\":16406840,\"binary\":1447680,\"atom_used\":2108651},\"backends.mod_vcard.calls.get_vcard\":{\"one\":0,\"count\":0},\"erlang.system_info\":{\"process_limit\":262144,\"process_count\":2218,\"port_limit\":65536,\"port_count\":49,\"ets_limit\":8192},\"tcpPortsUsed\":{\"value\":5},\"data.xmpp.sent.c2s.tcp\":{\"one\":285033,\"count\":285033},\"uniqueSessionCount\":{\"value\":2},\"backends.mod_last.calls.get_last\":{\"one\":1,\"count\":1},\"backends.mod_roster.get_roster_entry\":{\"n\":12,\"min\":5,\"median\":7,\"mean\":30,\"max\":111,\"999\":111,\"99\":111,\"95\":111,\"90\":111,\"75\":40,\"50\":7},\"data.xmpp.sent.s2s\":{\"one\":0,\"count\":0},\"backends.mod_roster.calls.get_roster\":{\"one\":55,\"count\":55},\"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\":71,\"median\":100,\"mean\":102,\"max\":149,\"999\":149,\"99\":149,\"95\":149,\"90\":149,\"75\":111,\"50\":100},\"data.xmpp.received.c2s.tls\":{\"one\":0,\"count\":0},\"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\":0,\"count\":0},\"data.xmpp.received.xml_stanza_size\":{\"n\":163,\"min\":11,\"median\":128,\"mean\":166,\"max\":1460,\"999\":1460,\"99\":1460,\"95\":1460,\"90\":1307,\"75\":137,\"50\":128},\"data.xmpp.received.c2s.tcp\":{\"one\":175584,\"count\":175584},\"data.xmpp.sent.xml_stanza_size\":{\"n\":192,\"min\":16,\"median\":173,\"mean\":443,\"max\":8127,\"999\":8127,\"99\":8095,\"95\":2196,\"90\":354,\"75\":235,\"50\":173},\"nodeUpTime\":{\"value\":421},\"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}}}">>,
         4514,3647}
Params: #{path => <<"/api/metrics/global/">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,return_maps => true,
          return_headers => true}


*** User 2024-02-23 08:41:13.684 ***🔗
REST request:
Code: 200
Req: {<0.29434.0>,<<"/api/metrics/global/uniqueSessionCount">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e29c44c168fa6eee">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 08:41:12 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"22">>}],
         <<"{\"metric\":{\"value\":2}}">>,146,298}
Params: #{path => <<"/api/metrics/global/uniqueSessionCount">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,return_maps => true,
          return_headers => true}


*** User 2024-02-23 08:41:13.689 ***🔗
REST request:
Code: 200
Req: {<0.29436.0>,<<"/api/metrics/global/">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6dc6fb7c8f809e27">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 08:41:12 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"4388">>}],
         <<"{\"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\":12988967,\"send_max\":65580,\"send_cnt\":33263,\"recv_oct\":7859789,\"recv_max\":70305,\"recv_cnt\":24240,\"connections\":2},\"node_cleanup\":{\"one\":2,\"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\":21,\"median\":25,\"mean\":28,\"max\":38,\"999\":38,\"99\":38,\"95\":38,\"90\":33,\"75\":33,\"50\":25},\"backends.mod_roster.get_subscription_lists\":{\"n\":38,\"min\":7,\"median\":12,\"mean\":14,\"max\":45,\"999\":45,\"99\":45,\"95\":26,\"90\":21,\"75\":19,\"50\":12},\"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\":65,\"count\":65},\"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\":24,\"min\":5,\"median\":10,\"mean\":16,\"max\":29,\"999\":29,\"99\":29,\"95\":29,\"90\":28,\"75\":20,\"50\":10},\"data.xmpp.received.s2s\":{\"one\":0,\"count\":0},\"backends.mod_roster.calls.del_roster_t\":{\"one\":0,\"count\":0},\"processQueueLengths\":{\"total\":16,\"regular\":16,\"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\":57187},\"erlang.memory\":{\"total\":191407360,\"system\":134367032,\"processes_used\":57533480,\"ets\":16406840,\"binary\":1447680,\"atom_used\":2108651},\"backends.mod_vcard.calls.get_vcard\":{\"one\":0,\"count\":0},\"erlang.system_info\":{\"process_limit\":262144,\"process_count\":2218,\"port_limit\":65536,\"port_count\":49,\"ets_limit\":8192},\"tcpPortsUsed\":{\"value\":5},\"data.xmpp.sent.c2s.tcp\":{\"one\":285033,\"count\":285033},\"uniqueSessionCount\":{\"value\":2},\"backends.mod_last.calls.get_last\":{\"one\":1,\"count\":1},\"backends.mod_roster.get_roster_entry\":{\"n\":12,\"min\":5,\"median\":7,\"mean\":30,\"max\":111,\"999\":111,\"99\":111,\"95\":111,\"90\":111,\"75\":40,\"50\":7},\"data.xmpp.sent.s2s\":{\"one\":0,\"count\":0},\"backends.mod_roster.calls.get_roster\":{\"one\":55,\"count\":55},\"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\":71,\"median\":100,\"mean\":102,\"max\":149,\"999\":149,\"99\":149,\"95\":149,\"90\":149,\"75\":111,\"50\":100},\"data.xmpp.received.c2s.tls\":{\"one\":0,\"count\":0},\"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\":0,\"count\":0},\"data.xmpp.received.xml_stanza_size\":{\"n\":163,\"min\":11,\"median\":128,\"mean\":166,\"max\":1460,\"999\":1460,\"99\":1460,\"95\":1460,\"90\":1307,\"75\":137,\"50\":128},\"data.xmpp.received.c2s.tcp\":{\"one\":175584,\"count\":175584},\"data.xmpp.sent.xml_stanza_size\":{\"n\":192,\"min\":16,\"median\":173,\"mean\":443,\"max\":8127,\"999\":8127,\"99\":8095,\"95\":2196,\"90\":354,\"75\":235,\"50\":173},\"nodeUpTime\":{\"value\":421},\"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}}}">>,
         4514,3665}
Params: #{path => <<"/api/metrics/global/">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,return_maps => true,
          return_headers => true}


*** User 2024-02-23 08:41:13.690 ***🔗
REST request:
Code: 200
Req: {<0.29438.0>,<<"/api/metrics/global/nodeSessionCount">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c8d76ddbf32e2ee0">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 08:41:12 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"22">>}],
         <<"{\"metric\":{\"value\":3}}">>,146,365}
Params: #{path => <<"/api/metrics/global/nodeSessionCount">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,return_maps => true,
          return_headers => true}


*** User 2024-02-23 08:41:13.696 ***🔗
REST request:
Code: 200
Req: {<0.29440.0>,<<"/api/metrics/global/">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c78dd9830bc232b7">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 08:41:12 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"4388">>}],
         <<"{\"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\":12999211,\"send_max\":65580,\"send_cnt\":33271,\"recv_oct\":7860301,\"recv_max\":70305,\"recv_cnt\":24244,\"connections\":2},\"node_cleanup\":{\"one\":2,\"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\":21,\"median\":25,\"mean\":28,\"max\":38,\"999\":38,\"99\":38,\"95\":38,\"90\":33,\"75\":33,\"50\":25},\"backends.mod_roster.get_subscription_lists\":{\"n\":38,\"min\":7,\"median\":12,\"mean\":14,\"max\":45,\"999\":45,\"99\":45,\"95\":26,\"90\":21,\"75\":19,\"50\":12},\"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\":65,\"count\":65},\"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\":24,\"min\":5,\"median\":10,\"mean\":16,\"max\":29,\"999\":29,\"99\":29,\"95\":29,\"90\":28,\"75\":20,\"50\":10},\"data.xmpp.received.s2s\":{\"one\":0,\"count\":0},\"backends.mod_roster.calls.del_roster_t\":{\"one\":0,\"count\":0},\"processQueueLengths\":{\"total\":16,\"regular\":16,\"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\":57194},\"erlang.memory\":{\"total\":191424696,\"system\":134369240,\"processes_used\":57401216,\"ets\":16406840,\"binary\":1447680,\"atom_used\":2108651},\"backends.mod_vcard.calls.get_vcard\":{\"one\":0,\"count\":0},\"erlang.system_info\":{\"process_limit\":262144,\"process_count\":2218,\"port_limit\":65536,\"port_count\":49,\"ets_limit\":8192},\"tcpPortsUsed\":{\"value\":5},\"data.xmpp.sent.c2s.tcp\":{\"one\":285033,\"count\":285033},\"uniqueSessionCount\":{\"value\":2},\"backends.mod_last.calls.get_last\":{\"one\":1,\"count\":1},\"backends.mod_roster.get_roster_entry\":{\"n\":12,\"min\":5,\"median\":7,\"mean\":30,\"max\":111,\"999\":111,\"99\":111,\"95\":111,\"90\":111,\"75\":40,\"50\":7},\"data.xmpp.sent.s2s\":{\"one\":0,\"count\":0},\"backends.mod_roster.calls.get_roster\":{\"one\":55,\"count\":55},\"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\":71,\"median\":100,\"mean\":102,\"max\":149,\"999\":149,\"99\":149,\"95\":149,\"90\":149,\"75\":111,\"50\":100},\"data.xmpp.received.c2s.tls\":{\"one\":0,\"count\":0},\"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\":0,\"count\":0},\"data.xmpp.received.xml_stanza_size\":{\"n\":163,\"min\":11,\"median\":128,\"mean\":166,\"max\":1460,\"999\":1460,\"99\":1460,\"95\":1460,\"90\":1307,\"75\":137,\"50\":128},\"data.xmpp.received.c2s.tcp\":{\"one\":175584,\"count\":175584},\"data.xmpp.sent.xml_stanza_size\":{\"n\":192,\"min\":16,\"median\":173,\"mean\":443,\"max\":8127,\"999\":8127,\"99\":8095,\"95\":2196,\"90\":354,\"75\":235,\"50\":173},\"nodeUpTime\":{\"value\":421},\"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}}}">>,
         4514,4673}
Params: #{path => <<"/api/metrics/global/">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,return_maps => true,
          return_headers => true}


*** User 2024-02-23 08:41:13.696 ***🔗
bob@localhost/res1 out
</stream:stream>

*** User 2024-02-23 08:41:13.697 ***🔗
bob@localhost/res1 in
</stream:stream>

*** User 2024-02-23 08:41:13.697 ***🔗
alice@localhost/res2 out
</stream:stream>

*** User 2024-02-23 08:41:13.697 ***🔗
alice@localhost/res2 in
</stream:stream>

*** User 2024-02-23 08:41:13.697 ***🔗
alice@localhost/res1 out
</stream:stream>

*** User 2024-02-23 08:41:13.698 ***🔗
alice@localhost/res1 in
</stream:stream>
*** CT 2024-02-23 08:41:13.700 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_1799.html



=== Ended at 2024-02-23 08:41:13
=== successfully completed test case
=== === Returned value: ok


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