

If a virtualenv is used, it is required to update the Environment=PATH to include the venv/bin directory createdĮarlier. User and Group definitions inside the service file. If the ejabberd-metrics.yml file is not accessible for the user nobody:nogroup, it is required to update the


To properly operate the metrics exporter tools, we created some systemd service templates, to simplify the whole The finalĬonfiguration file should be located at /etc/ejabberd-metrics.yml. We provide an file, listing all possible and potentially necessary parameters. The ejabberd-metrics.yml file is the central configuration file which is used by all current and future tools inside listen : - port : 5280 ip : "127.0.0.1" tls : true # optional module : ejabberd_http request_handlers : /api : mod_http_api acl : api : user : - loopback : ip : - 127.0.0.0 /8 - :: 1 /128 - :: FFFF:127.0.0.1/128 api_permissions : "api access" : from : - mod_http_api who : access : allow : acl : api acl : loopback # optional but recommended to restrict the api access to the local network what : - "*" - "!stop" - "!start" ejabberd-metrics.yml Additionally the user isĪdded to the acl group, thus enabling him to access the mod_http_api configured in the api_permissions block. These configurations options first add the mod_http_api listener. We strongly recommend to useĪ dedicated user to operate the api and to secure this account with a specifically strong password. To operate the api it is required to provide a user account eligible to issue api commands. # create a venv folder inside the cloned repository
#Ejabberd api install#
Using Python3 and finally install all dependencies listed in the requirements file. The following bash lines install the python-virtualenv module, create the virtual environment The easiest way to setup a clean Python project environment is to use a virtual environment inside the cloned InĪddition to that a Prometheus and InfluxDB client utilizing the The metrics class is a tool to gather and aggregate metrics data through the ejabberd rest/ xmlrpc interface. Repository containing various ejabberd tools.
