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:
Jared Forsyth 2022-10-10 10:29:11 -05:00 committed by GitHub
parent 2bbe61c3cc
commit 6e7cc49915
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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