diff options
| author | seth <[email protected]> | 2023-05-22 19:27:36 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-05-22 19:27:36 -0400 |
| commit | 2cb6cfab9553184c1e6a10303cb832fe96080d00 (patch) | |
| tree | 5a5d815e3d66fb8e1a550aec6a4dece9fe82b66b /hosts/p-body/prometheus.nix | |
| parent | 3a7cc8116cce947f5652e0e46f4d60d59bfb5717 (diff) | |
atlas/pbody: fix monitoring
Diffstat (limited to 'hosts/p-body/prometheus.nix')
| -rw-r--r-- | hosts/p-body/prometheus.nix | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/hosts/p-body/prometheus.nix b/hosts/p-body/prometheus.nix index 56e05a9..26e9d0e 100644 --- a/hosts/p-body/prometheus.nix +++ b/hosts/p-body/prometheus.nix @@ -12,23 +12,21 @@ in { services.prometheus = { enable = true; - port = 5000; exporters = { node = { enable = true; enabledCollectors = ["systemd"]; - port = 5001; }; }; scrapeConfigs = [ - (scrapeExporter "p-body" "127.0.0.1" "${toString config.services.prometheus.exporters.node.port}") - (scrapeExporter "atlas" "atlas" "5001") + (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://127.0.0.1:${toString config.services.loki.configuration.server.http_listen_port}/loki/api/v1/push"; + url = "http://localhost:${toString config.services.loki.configuration.server.http_listen_port}/loki/api/v1/push"; } ]; } |
