mirror of
https://github.com/caddyserver/website.git
synced 2025-04-20 20:16:16 -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
|
```caddy
|
||||||
{
|
{
|
||||||
servers {
|
|
||||||
metrics
|
metrics
|
||||||
}
|
}
|
||||||
}
|
|
||||||
```
|
```
|
||||||
|
|
||||||
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/).
|
||||||
|
@ -29,12 +27,10 @@ To add per host metrics you can insert the per_host option. Host specific metric
|
||||||
|
|
||||||
```caddy
|
```caddy
|
||||||
{
|
{
|
||||||
servers {
|
|
||||||
metrics {
|
metrics {
|
||||||
per_host
|
per_host
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Prometheus
|
## Prometheus
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue