Software / code / prosody-modules
Comparison
mod_statistics_statsman/README.markdown @ 3608:2c25594f9e71
mod_statistics_statsman/README: Describe how to switch from mod_statistics
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 28 May 2019 21:23:35 +0200 |
| parent | 3159:e995cd0f228e |
| child | 4595:bac3dae031ee |
comparison
equal
deleted
inserted
replaced
| 3607:3a06b0b6ba67 | 3608:2c25594f9e71 |
|---|---|
| 1 A module providing a streaming statistics interface like | 1 A module providing a streaming statistics interface like |
| 2 [mod_statistics] but based on the new [statistics API][doc:statistics] | 2 [mod_statistics] but based on the new [statistics API][doc:statistics] |
| 3 introduced in Prosody 0.10. | 3 introduced in Prosody 0.10. |
| 4 | |
| 5 # Usage | |
| 6 | |
| 7 To use, enable the built-in statistics like so: | |
| 8 | |
| 9 ```lua | |
| 10 statistics = "internal" | |
| 11 ``` | |
| 12 | |
| 13 Then, in `modules_enabled`, replace `"statistics"` with | |
| 14 `"statistics_statsman"` and the various `"statistics_<something>"` | |
| 15 with equivalent `"measure_<something>"`. |