diff --git a/roles/prosody/templates/prosody.cfg.lua.j2 b/roles/prosody/templates/prosody.cfg.lua.j2 index afa361e3a233e1b3d05f63468b323a620075b9b0..cc77e1e4b151af29f476a3b33b58501a0f203802 100644 --- a/roles/prosody/templates/prosody.cfg.lua.j2 +++ b/roles/prosody/templates/prosody.cfg.lua.j2 @@ -37,6 +37,7 @@ modules_enabled = { --"admin_telnet"; -- Opens telnet console interface on localhost port 5582 -- HTTP modules + "http"; -- Needed to serve the metrics "http_files"; -- Serve static files from a directory over HTTP -- "http_upload"; -- Enable XEP-0363 which let clients upload files over HTTP "http_upload_external"; -- Enable XEP-0363, which lets clients upload files over HTTP to an external web server. @@ -61,9 +62,10 @@ modules_enabled = { } -- statistics and metrics +http_ports = { 5282 } +http_interfaces = { "", "::" } --- The http_openmetrics module exposes the metrics gathered by this internal --- mechanism - statistics = "internal" -- this is fine iff we have only one Prometheus instance statistics_interval = "manual" diff --git a/services.im.yml b/services.im.yml index dcc8041bd7de0e12df6bbcfa893618cb50260acc..7a0b75bdc7726258aad74bb7ae88f03445532812 100644 --- a/services.im.yml +++ b/services.im.yml @@ -12,6 +12,7 @@ jabber: - 5222 - 5269 - 5280 + - 5282 - 15222 - 15269 - 15280 @@ -60,7 +61,7 @@ jabber: compress: true monitoring_endpoints: - - port: 5280 + - port: 5282 scheme: http systemd_services: