mirror of
https://github.com/caddyserver/website.git
synced 2025-04-24 05:56:15 -04:00
metrics: Add a note about when metrics became opt-in (#276)
* Add a note about when metrics was added * better note * Update src/docs/markdown/metrics.md Co-authored-by: Matt Holt <mholt@users.noreply.github.com> Co-authored-by: Matt Holt <mholt@users.noreply.github.com>
This commit is contained in:
parent
2bbe61c3cc
commit
6e7cc49915
1 changed files with 3 additions and 0 deletions
|
@ -13,6 +13,9 @@ In other words, you're going to want to be able to _monitor_ Caddy.
|
|||
|
||||
You'll need to turn metrics on. If using a Caddyfile, enable metrics [in global options](/docs/caddyfile/options#metrics):
|
||||
|
||||
> **Note**
|
||||
> Caddy 2.6 made metrics opt-in. To enable them, use either [Caddyfile global options](https://caddyserver.com/docs/caddyfile/options#metrics) or [the `metrics` parameter](https://caddyserver.com/docs/json/apps/http/servers/metrics/) of a server's JSON config.
|
||||
|
||||
```caddy
|
||||
{
|
||||
servers {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue