mirror of
https://github.com/caddyserver/website.git
synced 2025-04-21 20:46:15 -04:00
Update metrics.md
This commit is contained in:
parent
1646cd51c1
commit
6b31affd1e
1 changed files with 12 additions and 0 deletions
|
@ -25,6 +25,18 @@ If using a Caddyfile, enable metrics [in global options](/docs/caddyfile/options
|
||||||
|
|
||||||
If using JSON, add `"metrics": {}` to your [`apps > http > servers` configuration](/docs/json/apps/http/servers/).
|
If using JSON, add `"metrics": {}` to your [`apps > http > servers` configuration](/docs/json/apps/http/servers/).
|
||||||
|
|
||||||
|
To add per host metrics you can insert the per_host option. Host specific metrics will now have a Host tag.
|
||||||
|
|
||||||
|
```caddy
|
||||||
|
{
|
||||||
|
servers {
|
||||||
|
metrics {
|
||||||
|
per_host
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## Prometheus
|
## Prometheus
|
||||||
|
|
||||||
[Prometheus](https://prometheus.io) is a monitoring platform that collects
|
[Prometheus](https://prometheus.io) is a monitoring platform that collects
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue