summaryrefslogtreecommitdiff
path: root/hosts/p-body/prometheus.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/p-body/prometheus.nix')
-rw-r--r--hosts/p-body/prometheus.nix8
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";
}
];
}