diff options
| author | Gleb Peregud <gleber.p@gmail.com> | 2020-11-27 17:52:11 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-27 11:52:11 -0500 |
| commit | a2b1a4afbf1b8dc4727d1dfb9272f854b964ddb5 (patch) | |
| tree | 90192cab51191e6b275bc3b23ed4e198dec1d71e | |
| parent | 23c181ee72671fce4859f9fa8aaf508c47ccfaf8 (diff) | |
| download | xesite-a2b1a4afbf1b8dc4727d1dfb9272f854b964ddb5.tar.xz xesite-a2b1a4afbf1b8dc4727d1dfb9272f854b964ddb5.zip | |
Minor fixes in the Prometheus/Grafana/Loki post (#271)
* Minor fixes in the Prometheus/Grafana/Loki post
* Update node exporter port
| -rw-r--r-- | blog/prometheus-grafana-loki-nixos-2020-11-20.markdown | 8 |
1 files 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}" ]; - ]; + }]; } ]; |
