diff --git a/services/http-proxy/proxy.nix b/services/http-proxy/proxy.nix index f1d1549..68bf0f9 100644 --- a/services/http-proxy/proxy.nix +++ b/services/http-proxy/proxy.nix @@ -5,9 +5,6 @@ configFile = pkgs.writeText "Caddyfile" '' { acme_ca https://ca.home.2rjus.net/acme/acme/directory - servers { - metrics - } } nzbget.home.2rjus.net { @@ -42,6 +39,12 @@ } reverse_proxy http://ha1.home.2rjus.net:8080 } + http://http-proxy.home.2rjus.net/metrics { + log { + output file /var/log/caddy/caddy-metrics.log + } + metrics + } ''; }; } diff --git a/services/monitoring/prometheus.nix b/services/monitoring/prometheus.nix index 16e00c1..3e59b80 100644 --- a/services/monitoring/prometheus.nix +++ b/services/monitoring/prometheus.nix @@ -156,7 +156,7 @@ job_name = "caddy"; static_configs = [ { - targets = [ "http-proxy.home.2rjus.net:2019" ]; + targets = [ "http-proxy.home.2rjus.net" ]; } ]; }