From 6e7cc499156b42cfbc2b77da8f3bcfb22e79d858 Mon Sep 17 00:00:00 2001 From: Jared Forsyth Date: Mon, 10 Oct 2022 10:29:11 -0500 Subject: [PATCH] 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 Co-authored-by: Matt Holt --- src/docs/markdown/metrics.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/docs/markdown/metrics.md b/src/docs/markdown/metrics.md index 75fb442..c5a22b2 100644 --- a/src/docs/markdown/metrics.md +++ b/src/docs/markdown/metrics.md @@ -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 {