Skip to content

Options: Services

Some functionalities in MongooseIM are provided by "services". A service is similar to a module, but while a module is started for every virtual host and may have global or host-specific configuration, a service is started only once with global configuration. Currently, only two modules are categorised as "service providers". Eventually the modules which are not host-specific will be refactored to be services.

  • Scope: global
  • Syntax: Both services are specified in their own sections, either [services.service_admin_extra] or [services.service_mongoose_system_metrics].
  • Default: None - each service needs to be enabled explicitly. Typical services are already specified in the example configuration file.
  • Example: A configuration of the service_admin_extra service.
  submods = ["node", "account", "sessions", "vcard", "gdpr", "upload", "roster",
             "last", "private", "stanza", "stats"]



  • Syntax: Array of strings representing function groups added by service_admin_extra.
  • Default: All submodules: ["node", "account", "sessions", "vcard", "gdpr", "upload", "roster", "last", "private", "stanza", "stats"]
  • Example: submods = ["stats", "gdpr"]

This service provides additional commands to the mongooseimctl script. They are bundled in the following groups:

  • accounts: Adds change_password, check_password_hash, delete_old_users, delete_old_users_vhost, ban_account, num_active_users, check_account, check_password
  • last: Adds set_last
  • node: Adds load_config, get_cookie, remove_node
  • private: Adds private_get, private_set
  • roster: Adds add_rosteritem, delete_rosteritem, process_rosteritems, get_roster, push_roster, push_roster_all, push_roster_alltoall
  • sessions: Adds num_resources, resource_num, kick_session, status_num_host, status_num, status_list_host, status_list, connected_users_info, connected_users_vhost, user_sessions_info, set_presence
  • stanza: Adds send_message_chat, send_message_headline, send_stanza_c2s
  • stats: Adds stats, stats_host
  • vcard: Adds get_vcard, get_vcard2, get_vcard2_multi, set_vcard, set_vcard2, set_vcard2_multi
  • gdpr: Adds retrieve_personal_data
  • upload : Adds http_upload


MongooseIM system metrics are being gathered to analyse the trends and needs of our users, improve MongooseIM, and get to know where to focus our efforts. See System Metrics Privacy Policy for more details.

  • Syntax: boolean
  • Default: not specified
  • Example: report = true

Explicit acknowledgement that the metrics are gathered and reported. When this option is not specified, the reports are gathered and a notification appears in logs on startup. Enabling this option silences the notification reminder that metrics are gathered. When this option is set to false, System Metrics Service is not started and metrics are not collected.


  • Syntax: non-negative integer
  • Default: 300_000 (milliseconds - 5 minutes).
  • Example: intial_report = 300_000

Time delay counted when the service is started after which the first metrics report is created and sent.


  • Syntax: non-negative integer
  • Default: 108_000_000 (milliseconds - 3 hours)
  • Example: periodic_report = 108_000_000

Time delay for a periodic update report to be created and sent.


  • Syntax: string
  • Default: no default.
  • Example: tracking_id = "UA-123456789"

Tracking ID to forward the reported metrics so that they can be viewed in the Google Analytics dashboard.

Removing the services.service_mongoose_system_metrics entry will result in the service not being started. Metrics will not be collected and shared. It will generate a notification that the feature is not being used. The notification can be silenced by setting the no_report option explicitly.

Example configuration

  submods = ["node", "account", "sessions", "vcard", "gdpr", "upload", "roster",
             "last", "private", "stanza", "stats"]

  report = true
  initial_report = 300_000
  periodic_report = 108_000_000
  tracking_id = "UA-123456789"