From a2b1a4afbf1b8dc4727d1dfb9272f854b964ddb5 Mon Sep 17 00:00:00 2001 From: Gleb Peregud Date: Fri, 27 Nov 2020 17:52:11 +0100 Subject: [PATCH] Minor fixes in the Prometheus/Grafana/Loki post (#271) * Minor fixes in the Prometheus/Grafana/Loki post * Update node exporter port --- blog/prometheus-grafana-loki-nixos-2020-11-20.markdown | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/blog/prometheus-grafana-loki-nixos-2020-11-20.markdown b/blog/prometheus-grafana-loki-nixos-2020-11-20.markdown index bfba466..004e346 100644 --- a/blog/prometheus-grafana-loki-nixos-2020-11-20.markdown +++ b/blog/prometheus-grafana-loki-nixos-2020-11-20.markdown @@ -61,7 +61,7 @@ an editor and add the following to it: }; # nginx reverse proxy - services.nginx.virtualHosts.${services.grafana.domain} = { + services.nginx.virtualHosts.${config.services.grafana.domain} = { locations."/" = { proxyPass = "http://127.0.0.1:${toString config.services.grafana.port}"; proxyWebsockets = true; @@ -146,7 +146,7 @@ exporter under `services.prometheus`: node = { enable = true; enabledCollectors = [ "systemd" ]; - port = 9001; + port = 9002; }; }; } @@ -164,9 +164,9 @@ that points to the node exporter we configured just now: scrapeConfigs = [ { job_name = "chrysalis"; - static_configs = [ + static_configs = [{ targets = [ "127.0.0.1:${toString config.services.prometheus.exporters.node.port}" ]; - ]; + }]; } ];