From 6b31affd1e0d55ce8312c4b330560bab5dd13944 Mon Sep 17 00:00:00 2001 From: Camerin Figueroa Date: Fri, 28 Feb 2025 16:48:26 -0500 Subject: [PATCH] Update metrics.md --- src/docs/markdown/metrics.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/docs/markdown/metrics.md b/src/docs/markdown/metrics.md index 7a14283..faab5a0 100644 --- a/src/docs/markdown/metrics.md +++ b/src/docs/markdown/metrics.md @@ -25,6 +25,18 @@ If using a Caddyfile, enable metrics [in global options](/docs/caddyfile/options If using JSON, add `"metrics": {}` to your [`apps > http > servers` configuration](/docs/json/apps/http/servers/). +To add per host metrics you can insert the per_host option. Host specific metrics will now have a Host tag. + +```caddy +{ + servers { + metrics { + per_host + } + } +} +``` + ## Prometheus [Prometheus](https://prometheus.io) is a monitoring platform that collects