Update metrics.md

This commit is contained in:
Camerin Figueroa 2025-02-28 16:48:26 -05:00 committed by GitHub
parent 1646cd51c1
commit 6b31affd1e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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