mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 23:11:34 +01:00
caddy: Expose metrics without the admin api
This commit is contained in:
parent
c917eed038
commit
3d0d4ea31d
2 changed files with 14 additions and 2 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue