caddy: Expose metrics without the admin api

This commit is contained in:
SebastianStork 2025-09-23 13:10:24 +02:00
parent c917eed038
commit 3d0d4ea31d
2 changed files with 14 additions and 2 deletions

View file

@ -126,7 +126,7 @@ in
text = ''
prometheus.scrape "caddy" {
targets = [{
__address__ = "localhost:2019",
__address__ = "localhost:${builtins.toString config.custom.services.caddy.metrics.port}",
instance = constants.hostname,
}]
forward_to = [prometheus.remote_write.default.receiver]