Minor fixes in the Prometheus/Grafana/Loki post (#271)

* Minor fixes in the Prometheus/Grafana/Loki post

* Update node exporter port
This commit is contained in:
Gleb Peregud 2020-11-27 17:52:11 +01:00 committed by GitHub
parent 23c181ee72
commit a2b1a4afbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -61,7 +61,7 @@ an editor and add the following to it:
}; };
# nginx reverse proxy # nginx reverse proxy
services.nginx.virtualHosts.${services.grafana.domain} = { services.nginx.virtualHosts.${config.services.grafana.domain} = {
locations."/" = { locations."/" = {
proxyPass = "http://127.0.0.1:${toString config.services.grafana.port}"; proxyPass = "http://127.0.0.1:${toString config.services.grafana.port}";
proxyWebsockets = true; proxyWebsockets = true;
@ -146,7 +146,7 @@ exporter under `services.prometheus`:
node = { node = {
enable = true; enable = true;
enabledCollectors = [ "systemd" ]; enabledCollectors = [ "systemd" ];
port = 9001; port = 9002;
}; };
}; };
} }
@ -164,9 +164,9 @@ that points to the node exporter we configured just now:
scrapeConfigs = [ scrapeConfigs = [
{ {
job_name = "chrysalis"; job_name = "chrysalis";
static_configs = [ static_configs = [{
targets = [ "127.0.0.1:${toString config.services.prometheus.exporters.node.port}" ]; targets = [ "127.0.0.1:${toString config.services.prometheus.exporters.node.port}" ];
]; }];
} }
]; ];