From 2ba4df7f2d27ef62551a5074de168ddc32902bb5 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Fri, 11 Mar 2022 19:32:23 -0800 Subject: prometheus: scrap more endpoints --- hosts/common/server/prometheus.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'hosts/common') diff --git a/hosts/common/server/prometheus.nix b/hosts/common/server/prometheus.nix index 3c4ab94..00a7eba 100644 --- a/hosts/common/server/prometheus.nix +++ b/hosts/common/server/prometheus.nix @@ -45,6 +45,36 @@ in { }]; relabel_configs = relabelConfigs; } + { + job_name = "prometheus"; + static_configs = [{ targets = [ "192.168.6.20:9090" ]; }]; + relabel_configs = relabelConfigs; + } + { + job_name = "traefik"; + static_configs = [{ targets = [ "192.168.6.20:8090" ]; }]; + relabel_configs = relabelConfigs; + } + { + job_name = "dnsd"; + static_configs = [{ targets = [ "192.168.6.1:8053" ]; }]; + relabel_configs = relabelConfigs; + } + { + job_name = "dnsdd"; + static_configs = [{ targets = [ "192.168.6.1:9060" ]; }]; + relabel_configs = relabelConfigs; + } + { + job_name = "dhcpd"; + static_configs = [{ targets = [ "192.168.6.1:8067" ]; }]; + relabel_configs = relabelConfigs; + } + { + job_name = "netd"; + static_configs = [{ targets = [ "192.168.6.1:8055" ]; }]; + relabel_configs = relabelConfigs; + } { job_name = "unifi-poller"; static_configs = [{ targets = [ "192.168.6.20:9130" ]; }]; -- cgit 1.4.1