# HG changeset patch # User Emmanuel Gil Peyrot # Date 1605043748 -3600 # Node ID 313e293f44b327f4b0672f21693e2898cd75d193 # Parent e97c509fdbe39db95c340c5b2a05b67f9615d8ec mod_prometheus: Warn users to put statistics settings in the global section diff -r e97c509fdbe3 -r 313e293f44b3 mod_prometheus/README.markdown --- a/mod_prometheus/README.markdown Mon Nov 09 16:53:13 2020 +0000 +++ b/mod_prometheus/README.markdown Tue Nov 10 22:29:08 2020 +0100 @@ -29,6 +29,12 @@ statistics_interval = 15 -- in seconds ``` +::: {.alert .alert-warning} +**NOTE:** Make sure to put the statistics variables in the global section of +the configuration, **not** in a `VirtualHost` or `Component` section. You can +use `prosodyctl check` if you are unsure and want to check your configuration. +::: + See also the documentation of Prosody’s [HTTP server](https://prosody.im/doc/http), since Prometheus is an HTTP protocol that is how you can customise its URL. The default one being