Module Description
This module implements XMPP Ping functionality as described in XEP-0199: XMPP Ping.
Options
send_pings(boolean, defaultfalse): If set to true, the server will send ping iqs to the client if they are not active for aping_interval.ping_interval(seconds, default60): Defines the client inactivity timeout after which the server will send a ping request if the above option is set totrue.timeout_action(none|kill, defaultnone): Defines if the client connection should be closed if it doesn't reply to a ping request in less thanping_req_timeout.ping_req_timeout(seconds, default32) Defines how long the server waits for the client to reply to the ping request.iqdisc(default:no_queue)
Example Configuration
{mod_ping, [{send_pings, true}]},
Metrics
If you'd like to learn more about metrics in MongooseIM, please visit MongooseIM metrics page.
| Name | Type | Description (when it gets incremented) |
|---|---|---|
[Host, mod_ping, ping_response] |
spiral | Client responds to a ping. |
[Host, mod_ping, ping_response_timeout] |
spiral | Ping request timeouts without a response from client. |
[Host, mod_ping, ping_response_time] |
histogram | Response times (doesn't include timeouts). |