diff options
Diffstat (limited to 'hosts/p-body/prometheus.nix')
| -rw-r--r-- | hosts/p-body/prometheus.nix | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/hosts/p-body/prometheus.nix b/hosts/p-body/prometheus.nix deleted file mode 100644 index 26e9d0e..0000000 --- a/hosts/p-body/prometheus.nix +++ /dev/null @@ -1,32 +0,0 @@ -{config, ...}: let - scrapeExporter = name: host: port: { - job_name = "${name}"; - static_configs = [ - { - targets = [ - "${host}:${port}" - ]; - } - ]; - }; -in { - services.prometheus = { - enable = true; - exporters = { - node = { - enable = true; - enabledCollectors = ["systemd"]; - }; - }; - scrapeConfigs = [ - (scrapeExporter "p-body" "localhost" "${toString config.services.prometheus.exporters.node.port}") - (scrapeExporter "atlas" "atlas" "${toString config.services.prometheus.exporters.node.port}") - ]; - }; - - getchoo.server.services.promtail.clients = [ - { - url = "http://localhost:${toString config.services.loki.configuration.server.http_listen_port}/loki/api/v1/push"; - } - ]; -} |
