mirror of
https://github.com/caddyserver/website.git
synced 2025-04-20 04:15:04 -04:00
Update metrics code block to reflect change
Per mohammed90 The metrics config is now moved outside of the servers option.
This commit is contained in:
parent
d68ff4bfb8
commit
0b02c4a802
1 changed files with 4 additions and 8 deletions
|
@ -17,10 +17,8 @@ If using a Caddyfile, enable metrics [in global options](/docs/caddyfile/options
|
|||
|
||||
```caddy
|
||||
{
|
||||
servers {
|
||||
metrics
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
If using JSON, add `"metrics": {}` to your [`apps > http > servers` configuration](/docs/json/apps/http/servers/).
|
||||
|
@ -29,12 +27,10 @@ To add per host metrics you can insert the per_host option. Host specific metric
|
|||
|
||||
```caddy
|
||||
{
|
||||
servers {
|
||||
metrics {
|
||||
per_host
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Prometheus
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue