1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-08-20 02:05:58 +00:00
Munin-Contrib/plugins/prosody/README.md
Codimp e77a0e27af
prosody_openmetrics: add message_encryption_status
- add prefix_table
- fix filter_metric function for family_end
- rename config_table to label_table
2025-08-13 22:41:44 +02:00

3.8 KiB

Prosody plugins

For now, we have 3 plugins for Prosody:

  • prosody_openmetrics: For Prosody version >= 0.12, using mod_http_openmetrics
  • prosody_0.12_: For Prosody version = 0.12, using mod_admin_telnet
  • prosody_: For Prosody versions < 0.12, using mod_admin_telnet

prosody_openmetrics (for Prosody version >= 0.12)

OpenMetrics plugin to monitor a Prosody server.

This plugin provides graph c2s, s2s, presence, http_file_share, active_users, client_features, client_identities, cpu, memory, muc, message_encryption_status.

Install

  • Install Python3 package prometheus-client
  • Enable mod_http_openmetrics Prosody module
  • Enable Prosody modules required for some monitoring modules
  • Link this plugin in your munin plugins directory
ln -s /usr/share/munin/plugins/prosody_openmetrics /etc/munin/plugins/prosody_openmetrics

After the installation you need to restart your munin-node service.

Configuration

Some modules need specific Prosody modules to be activated:

You need to create a file named prosody_openmetrics placed in the directory /etc/munin/plugin-conf.d/ with the following config:

[prosody_openmetrics]
env.metrics_url http://localhost:5280/metrics
env.modules c2s,s2s,presence,http_file_share,active_users,client_features,client_identities,cpu,memory,muc,message_encryption_status
env.hosts example.com,file.example.com

prosody_0.12_ (for Prosody version = 0.12)

See prosody_ instructions below.

This plugin is the same as prosody_ but with new Prosody 0.12 output format.

prosody_ (for Prosody version < 0.12)

prosody_ is a plugin for the monitoring software munin <http://http://munin-monitoring.org/>_ to monitor a Prosody <http://prosody.im>_ xmpp server (version < 0.12).

This wildcard plugin provided at the moment only the c2s, s2s, presence, uptime and users suffixes.

Install

It is very simple to install the plugin.

chmod 755 prosody_
ln -s /usr/share/munin/plugins/prosody_ /etc/munin/plugins/prosody_c2s
ln -s /usr/share/munin/plugins/prosody_ /etc/munin/plugins/prosody_s2s
ln -s /usr/share/munin/plugins/prosody_ /etc/munin/plugins/prosody_presence
ln -s /usr/share/munin/plugins/prosody_ /etc/munin/plugins/prosody_uptime
ln -s /usr/share/munin/plugins/prosody_ /etc/munin/plugins/prosody_users

After the installation you need to restart your munin-node.

Configuration

When you want to change the default host (localhost) and port (5582) than you can change this in the /etc/munin/plugin-conf.d/munin-node config file like this:

[prosody_*]
env.host example.com
env.port 5582

If you want to get the number of registered users, add the following lines to /etc/munin/plugin-conf.d/munin-node:

[prosody_users]
user prosody
group prosody