Mercurial > prosody-modules
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 4238:e97c509fdbe3 | 4239:313e293f44b3 |
|---|---|
| 27 ```lua | 27 ```lua |
| 28 statistics = "internal" | 28 statistics = "internal" |
| 29 statistics_interval = 15 -- in seconds | 29 statistics_interval = 15 -- in seconds |
| 30 ``` | 30 ``` |
| 31 | 31 |
| 32 ::: {.alert .alert-warning} | |
| 33 **NOTE:** Make sure to put the statistics variables in the global section of | |
| 34 the configuration, **not** in a `VirtualHost` or `Component` section. You can | |
| 35 use `prosodyctl check` if you are unsure and want to check your configuration. | |
| 36 ::: | |
| 37 | |
| 32 See also the documentation of Prosody’s [HTTP | 38 See also the documentation of Prosody’s [HTTP |
| 33 server](https://prosody.im/doc/http), since Prometheus is an HTTP | 39 server](https://prosody.im/doc/http), since Prometheus is an HTTP |
| 34 protocol that is how you can customise its URL. The default one being | 40 protocol that is how you can customise its URL. The default one being |
| 35 http://localhost:5280/metrics | 41 http://localhost:5280/metrics |
| 36 | 42 |
