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

=== Config value:

    [{watchdog,<0.29447.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@163dd0e4bcb2.2024-04-23_06.26.23/big_tests.tests.metrics_api_SUITE.logs/run.2024-04-23_06.32.46/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@163dd0e4bcb2.2024-04-23_06.26.23/big_tests.tests.metrics_api_SUITE.logs/run.2024-04-23_06.32.46/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_amp => #{},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_cache_users =>
            #{number_of_segments => 5,strategy => fifo,time_to_live => 2},
        mod_carboncopy => #{iqdisc => no_queue},
        mod_disco =>
            #{extra_domains => [],iqdisc => one_queue,server_info => [],
              users_can_see_hidden_services => false},
        mod_presence => #{},
        mod_register =>
            #{access => register,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}],
              iqdisc => one_queue,password_strength => 0,
              registration_watchers => []},
        mod_roster =>
            #{backend => mnesia,iqdisc => one_queue,store_current_id => false,
              versioning => false},
        mod_sic => #{iqdisc => one_queue},
        mod_stream_management =>
            #{ack => true,ack_freq => 1,backend => mnesia,buffer => true,
              buffer_max => 100,resume_timeout => 600,
              stale_h =>
                  #{enabled => false,geriatric => 3600,repeat_after => 1800}},
        mod_vcard =>
            #{backend => ldap,
              host => {prefix,<<"vjud.">>},
              iqdisc => parallel,
              ldap =>
                  #{base => <<"ou=Users,dc=esl,dc=com">>,
                    binary_search_fields => [],deref => never,
                    filter => <<"(objectClass=inetOrgPerson)">>,
                    pool_tag => default,
                    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">>}],
                    search_operator => 'and',
                    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">>}],
                    uids => [{<<"uid">>,<<"%u">>}],
                    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">>]}]},
              matches => 30,search => true}}},
     {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@163dd0e4bcb2.2024-04-23_06.26.23"

=== Started at 2024-04-23 06:32:50


*** CT 2024-04-23 06:32:50.294 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_1849.html

*** User 2024-04-23 06:32:50.296 ***🔗
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 06:32:50.296 ***🔗
alicE@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='136be6f130537c3d' from='localhost' version='1.0' xml:lang='en'>

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



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



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

*** User 2024-04-23 06:32:50.299 ***🔗
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 06:32:50.299 ***🔗
alicE@localhost/res1 out
<iq type='set' id='00371e8d97433da5081584e879874a04'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-23 06:32:50.299 ***🔗
alicE@localhost/res1 in
<iq id='00371e8d97433da5081584e879874a04' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 06:32:50.299 ***🔗
alice@localhost/res1 out
<iq type='set' id='8905fca9f8db8d458f70b96c0086e4e6'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 06:32:50.300 ***🔗
alice@localhost/res1 in
<iq from='localhost' to='alice@localhost/res1' id='8905fca9f8db8d458f70b96c0086e4e6' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 06:32:50.300 ***🔗
alice@localhost/res1 out
<presence/>



*** User 2024-04-23 06:32:50.300 ***🔗
alice@localhost/res1 in
<presence from='alice@localhost/res1' to='alice@localhost/res1'/>



*** User 2024-04-23 06:32:50.301 ***🔗
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 06:32:50.301 ***🔗
alicE@localhost/res2 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='05870908e8232692' from='localhost' version='1.0' xml:lang='en'>

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



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



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

*** User 2024-04-23 06:32:50.303 ***🔗
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 06:32:50.303 ***🔗
alicE@localhost/res2 out
<iq type='set' id='e76c53342657d280bf193b77230d8668'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res2</resource>
	</bind>
</iq>



*** User 2024-04-23 06:32:50.303 ***🔗
alicE@localhost/res2 in
<iq id='e76c53342657d280bf193b77230d8668' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice@localhost/res2</jid>
	</bind>
</iq>



*** User 2024-04-23 06:32:50.303 ***🔗
alice@localhost/res2 out
<iq type='set' id='cf7dc067014a875e565e5ec9440aaf0b'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 06:32:50.304 ***🔗
alice@localhost/res2 in
<iq from='localhost' to='alice@localhost/res2' id='cf7dc067014a875e565e5ec9440aaf0b' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 06:32:50.304 ***🔗
alice@localhost/res2 out
<presence/>



*** User 2024-04-23 06:32:50.305 ***🔗
alice@localhost/res2 in
<presence from='alice@localhost/res1' to='alice@localhost/res2'>
	<delay xmlns='urn:xmpp:delay' stamp='2024-04-23T06:32:50.300347Z' from='alice@localhost/res1'/>
</presence>



*** User 2024-04-23 06:32:50.305 ***🔗
alice@localhost/res2 in
<presence from='alice@localhost/res2' to='alice@localhost/res2'/>



*** User 2024-04-23 06:32:50.305 ***🔗
alice@localhost/res1 in
<presence from='alice@localhost/res2' to='alice@localhost/res1'/>



*** User 2024-04-23 06:32:50.305 ***🔗
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 06:32:50.306 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e9d565b13f341d05' from='localhost' version='1.0' xml:lang='en'>

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



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



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

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



*** User 2024-04-23 06:32:50.308 ***🔗
bOb@localhost/res1 in
<iq id='9c194ae33ebc196a8553ab1ef7ff1c74' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 06:32:50.308 ***🔗
bob@localhost/res1 out
<iq type='set' id='2e6e749d0f69274993087f115a4c37fd'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 06:32:50.308 ***🔗
bob@localhost/res1 in
<iq from='localhost' to='bob@localhost/res1' id='2e6e749d0f69274993087f115a4c37fd' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 06:32:50.309 ***🔗
bob@localhost/res1 out
<presence/>



*** User 2024-04-23 06:32:50.309 ***🔗
bob@localhost/res1 in
<presence from='bob@localhost/res1' to='bob@localhost/res1'/>



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


*** User 2024-04-23 06:32:51.317 ***🔗
REST request:
Code: 200
Req: {<0.29461.0>,<<"/api/metrics/global/">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3ca78b2ac7093094">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 06:32:51 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"4385">>}],
         <<"{\"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\":13609784,\"send_max\":65576,\"send_cnt\":33109,\"recv_oct\":7840578,\"recv_max\":70314,\"recv_cnt\":24146,\"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\":20,\"median\":30,\"mean\":35,\"max\":64,\"999\":64,\"99\":64,\"95\":64,\"90\":40,\"75\":40,\"50\":30},\"backends.mod_roster.get_subscription_lists\":{\"n\":39,\"min\":4,\"median\":11,\"mean\":12,\"max\":20,\"999\":20,\"99\":20,\"95\":20,\"90\":18,\"75\":15,\"50\":11},\"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\":39,\"min\":11,\"median\":22,\"mean\":22,\"max\":54,\"999\":54,\"99\":54,\"95\":28,\"90\":26,\"75\":24,\"50\":22},\"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\":59952},\"erlang.memory\":{\"total\":187226408,\"system\":132114608,\"processes_used\":55613792,\"ets\":16458400,\"binary\":1175992,\"atom_used\":2080318},\"backends.mod_vcard.calls.get_vcard\":{\"one\":0,\"count\":0},\"erlang.system_info\":{\"process_limit\":262144,\"process_count\":2214,\"port_limit\":65536,\"port_count\":50,\"ets_limit\":8192},\"tcpPortsUsed\":{\"value\":44},\"data.xmpp.sent.c2s.tcp\":{\"one\":285037,\"count\":285037},\"uniqueSessionCount\":{\"value\":2},\"backends.mod_last.calls.get_last\":{\"one\":1,\"count\":1},\"backends.mod_roster.get_roster_entry\":{\"n\":12,\"min\":5,\"median\":10,\"mean\":25,\"max\":59,\"999\":59,\"99\":59,\"95\":52,\"90\":52,\"75\":45,\"50\":10},\"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\":68,\"median\":115,\"mean\":117,\"max\":154,\"999\":154,\"99\":154,\"95\":154,\"90\":143,\"75\":138,\"50\":115},\"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\":168,\"min\":11,\"median\":120,\"mean\":179,\"max\":1460,\"999\":1460,\"99\":1460,\"95\":1460,\"90\":1314,\"75\":137,\"50\":120},\"data.xmpp.received.c2s.tcp\":{\"one\":175591,\"count\":175591},\"data.xmpp.sent.xml_stanza_size\":{\"n\":190,\"min\":16,\"median\":178,\"mean\":408,\"max\":8128,\"999\":8128,\"99\":8100,\"95\":2670,\"90\":363,\"75\":230,\"50\":178},\"nodeUpTime\":{\"value\":457},\"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}}}">>,
         4511,3922}
Params: #{body => <<>>,method => <<"GET">>,path => <<"/api/metrics/global/">>,
          return_headers => true,return_maps => true,role => admin,
          server => #{node => mongooseim@localhost}}


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


*** User 2024-04-23 06:32:51.324 ***🔗
REST request:
Code: 200
Req: {<0.29465.0>,<<"/api/metrics/global/">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"711cd486c7e5c638">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 06:32:51 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"4385">>}],
         <<"{\"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\":13620860,\"send_max\":65576,\"send_cnt\":33117,\"recv_oct\":7841090,\"recv_max\":70314,\"recv_cnt\":24150,\"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\":20,\"median\":30,\"mean\":35,\"max\":64,\"999\":64,\"99\":64,\"95\":64,\"90\":40,\"75\":40,\"50\":30},\"backends.mod_roster.get_subscription_lists\":{\"n\":39,\"min\":4,\"median\":11,\"mean\":12,\"max\":20,\"999\":20,\"99\":20,\"95\":20,\"90\":18,\"75\":15,\"50\":11},\"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\":39,\"min\":11,\"median\":22,\"mean\":22,\"max\":54,\"999\":54,\"99\":54,\"95\":28,\"90\":26,\"75\":24,\"50\":22},\"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\":59959},\"erlang.memory\":{\"total\":187350160,\"system\":132113832,\"processes_used\":55729696,\"ets\":16458400,\"binary\":1175992,\"atom_used\":2080318},\"backends.mod_vcard.calls.get_vcard\":{\"one\":0,\"count\":0},\"erlang.system_info\":{\"process_limit\":262144,\"process_count\":2214,\"port_limit\":65536,\"port_count\":50,\"ets_limit\":8192},\"tcpPortsUsed\":{\"value\":44},\"data.xmpp.sent.c2s.tcp\":{\"one\":285037,\"count\":285037},\"uniqueSessionCount\":{\"value\":2},\"backends.mod_last.calls.get_last\":{\"one\":1,\"count\":1},\"backends.mod_roster.get_roster_entry\":{\"n\":12,\"min\":5,\"median\":10,\"mean\":25,\"max\":59,\"999\":59,\"99\":59,\"95\":52,\"90\":52,\"75\":45,\"50\":10},\"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\":68,\"median\":115,\"mean\":117,\"max\":154,\"999\":154,\"99\":154,\"95\":154,\"90\":143,\"75\":138,\"50\":115},\"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\":168,\"min\":11,\"median\":120,\"mean\":179,\"max\":1460,\"999\":1460,\"99\":1460,\"95\":1460,\"90\":1314,\"75\":137,\"50\":120},\"data.xmpp.received.c2s.tcp\":{\"one\":175591,\"count\":175591},\"data.xmpp.sent.xml_stanza_size\":{\"n\":190,\"min\":16,\"median\":178,\"mean\":408,\"max\":8128,\"999\":8128,\"99\":8100,\"95\":2670,\"90\":363,\"75\":230,\"50\":178},\"nodeUpTime\":{\"value\":457},\"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}}}">>,
         4511,3815}
Params: #{body => <<>>,method => <<"GET">>,path => <<"/api/metrics/global/">>,
          return_headers => true,return_maps => true,role => admin,
          server => #{node => mongooseim@localhost}}


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


*** User 2024-04-23 06:32:51.331 ***🔗
REST request:
Code: 200
Req: {<0.29469.0>,<<"/api/metrics/global/">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ea08e98c07dac313">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 06:32:51 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"4385">>}],
         <<"{\"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\":13631936,\"send_max\":65576,\"send_cnt\":33125,\"recv_oct\":7841602,\"recv_max\":70314,\"recv_cnt\":24154,\"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\":20,\"median\":30,\"mean\":35,\"max\":64,\"999\":64,\"99\":64,\"95\":64,\"90\":40,\"75\":40,\"50\":30},\"backends.mod_roster.get_subscription_lists\":{\"n\":39,\"min\":4,\"median\":11,\"mean\":12,\"max\":20,\"999\":20,\"99\":20,\"95\":20,\"90\":18,\"75\":15,\"50\":11},\"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\":39,\"min\":11,\"median\":22,\"mean\":22,\"max\":54,\"999\":54,\"99\":54,\"95\":28,\"90\":26,\"75\":24,\"50\":22},\"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\":59966},\"erlang.memory\":{\"total\":187424984,\"system\":132113896,\"processes_used\":55861648,\"ets\":16458400,\"binary\":1175992,\"atom_used\":2080318},\"backends.mod_vcard.calls.get_vcard\":{\"one\":0,\"count\":0},\"erlang.system_info\":{\"process_limit\":262144,\"process_count\":2214,\"port_limit\":65536,\"port_count\":50,\"ets_limit\":8192},\"tcpPortsUsed\":{\"value\":44},\"data.xmpp.sent.c2s.tcp\":{\"one\":285037,\"count\":285037},\"uniqueSessionCount\":{\"value\":2},\"backends.mod_last.calls.get_last\":{\"one\":1,\"count\":1},\"backends.mod_roster.get_roster_entry\":{\"n\":12,\"min\":5,\"median\":10,\"mean\":25,\"max\":59,\"999\":59,\"99\":59,\"95\":52,\"90\":52,\"75\":45,\"50\":10},\"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\":68,\"median\":115,\"mean\":117,\"max\":154,\"999\":154,\"99\":154,\"95\":154,\"90\":143,\"75\":138,\"50\":115},\"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\":168,\"min\":11,\"median\":120,\"mean\":179,\"max\":1460,\"999\":1460,\"99\":1460,\"95\":1460,\"90\":1314,\"75\":137,\"50\":120},\"data.xmpp.received.c2s.tcp\":{\"one\":175591,\"count\":175591},\"data.xmpp.sent.xml_stanza_size\":{\"n\":190,\"min\":16,\"median\":178,\"mean\":408,\"max\":8128,\"999\":8128,\"99\":8100,\"95\":2670,\"90\":363,\"75\":230,\"50\":178},\"nodeUpTime\":{\"value\":457},\"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}}}">>,
         4511,4377}
Params: #{body => <<>>,method => <<"GET">>,path => <<"/api/metrics/global/">>,
          return_headers => true,return_maps => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-23 06:32:51.331 ***🔗
bob@localhost/res1 out
</stream:stream>

*** User 2024-04-23 06:32:51.332 ***🔗
bob@localhost/res1 in
</stream:stream>

*** User 2024-04-23 06:32:51.332 ***🔗
alice@localhost/res2 out
</stream:stream>

*** User 2024-04-23 06:32:51.332 ***🔗
alice@localhost/res2 in
</stream:stream>

*** User 2024-04-23 06:32:51.332 ***🔗
alice@localhost/res1 out
</stream:stream>

*** User 2024-04-23 06:32:51.332 ***🔗
alice@localhost/res1 in
</stream:stream>
*** CT 2024-04-23 06:32:51.334 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_1849.html



=== Ended at 2024-04-23 06:32:51
=== successfully completed test case
=== === Returned value: ok


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