diff mod_prometheus/README.markdown @ 4239:313e293f44b3

mod_prometheus: Warn users to put statistics settings in the global section
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 10 Nov 2020 22:29:08 +0100
parents 39ec478a752e
children f4ab80f72d63
line wrap: on
line diff
--- 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