diff options
Diffstat (limited to 'os/srv/prometheus.nix')
| -rw-r--r-- | os/srv/prometheus.nix | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/os/srv/prometheus.nix b/os/srv/prometheus.nix index afccef4..5b133be 100644 --- a/os/srv/prometheus.nix +++ b/os/srv/prometheus.nix @@ -1,4 +1,9 @@ -{ config, lib, ... }: +{ + config, + lib, + masterDomain, + ... +}: let cfg = config.os.srv.prometheus; in @@ -9,26 +14,39 @@ in enable = true; port = 9090; - alertmanagers = [ - { - static_configs = [ { targets = [ "127.0.0.1:9093" ]; } ]; - } - ]; - scrapeConfigs = [ { job_name = "prometheus"; static_configs = [ { targets = [ "127.0.0.1:9090" ]; } ]; } { + job_name = "node-hardware"; + static_configs = [ { targets = [ "127.0.0.1:9100" ]; } ]; + } + { job_name = "node_exporter"; static_configs = [ { targets = [ "127.0.0.1:9100" ]; } ]; } { + job_name = "bare_metal_host_netdata"; + scheme = "https"; + metrics_path = "/api/v1/allmetrics"; + params = { + format = [ "prometheus" ]; + }; + static_configs = [ + { targets = [ "netdata.${masterDomain}" ]; } + ]; + } + { job_name = "uptime_kuma"; metrics_path = "/metrics"; static_configs = [ { targets = [ "127.0.0.1:3001" ]; } ]; } + { + job_name = "network-latency"; + static_configs = [ { targets = [ "127.0.0.1:9374" ]; } ]; + } ]; exporters = { node = { @@ -37,28 +55,10 @@ in port = 9100; }; - alertmanager = { - enable = true; - port = 9093; - configuration = { - route = { - receiver = "default-receiver"; - group_by = [ "alertname" ]; - }; - receivers = [ - { - name = "default-receiver"; - } - ]; - }; - }; - smokeping = { enable = true; listenAddress = "127.0.0.1"; - pingInterval = "1s"; - hosts = [ "10.0.0.1" # Personal Router "192.168.0.1" # ISP Modem Box |
