Make the metrics page configurable

Make the metrics page configurable with an `ip_filter`.

This closes #10.
This commit is contained in:
finga 2021-11-09 14:50:02 +01:00
parent f0f1d3239d
commit f24a786ec6
3 changed files with 222 additions and 43 deletions

View file

@ -59,6 +59,20 @@ Whereas `<config_dir>` depends on the platform:
### Configuration parameters
#### Metrics
A metrics page can optionally enabled to query stats of the currently
running webhookey instance. Note that stats are lost between restarts
of webhookey as those are not stored persistently.
Example:
```yaml
metrics:
enabled: true
ip_filter:
allow:
- 127.0.0.1/31
```
#### Hooks
With `hooks` you can configure a sequence of hooks. A single hook
consists of the following fields: