From e78f70626e0cc46ec48762d1c9462d6c726f1d9e Mon Sep 17 00:00:00 2001 From: Catherine Date: Mon, 22 Sep 2025 08:42:35 +0000 Subject: [PATCH] Fly.io: enable Caddy metrics collection. --- conf/Caddyfile | 2 +- fly.toml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/conf/Caddyfile b/conf/Caddyfile index b2ad83e..255323e 100644 --- a/conf/Caddyfile +++ b/conf/Caddyfile @@ -14,7 +14,7 @@ log { output stderr level WARN - exclude http.auto_https + exclude admin http.auto_https format console { time_key "" } diff --git a/fly.toml b/fly.toml index ba76143..6345005 100644 --- a/fly.toml +++ b/fly.toml @@ -18,6 +18,7 @@ cpus = 2 memory = 512 [env] +CADDY_ADMIN = ":2019" UDP_BIND_TO = "fly-global-services" ALLOW_PROXY = "172.16.0.0/16" AUTOMEMLIMIT = "0.25" @@ -80,3 +81,7 @@ path = "/" grace_period = "5s" interval = "2s" timeout = "1s" + +[metrics] +port = 2019 +path = "/metrics"