Skip to content
Snippets Groups Projects
Commit 487f1418 authored by Florian Sesser's avatar Florian Sesser
Browse files

Make localhost the default for Grafana's TSDBs

Fewer lines almost always better.  Also, we don't want to spread
these out unless we have to.
parent ec7ce08c
Branches
No related tags found
No related merge requests found
...@@ -28,9 +28,4 @@ rec { ...@@ -28,9 +28,4 @@ rec {
# Loki 0.3.0 from Nixpkgs 19.09 is too old and does not work: # Loki 0.3.0 from Nixpkgs 19.09 is too old and does not work:
# ../../nixos/modules/monitoring/server/loki.nix # ../../nixos/modules/monitoring/server/loki.nix
]; ];
services.private-storage.monitoring.grafana = {
prometheusUrl = "http://localhost:9090/";
lokiUrl = "http://localhost:3100/";
};
} }
...@@ -18,13 +18,13 @@ in { ...@@ -18,13 +18,13 @@ in {
prometheusUrl = lib.mkOption prometheusUrl = lib.mkOption
{ type = lib.types.str; { type = lib.types.str;
example = lib.literalExample "http://prometheus:9090/"; example = lib.literalExample "http://prometheus:9090/";
default = "http://prometheus:9090/"; default = "http://localhost:9090/";
description = "The URL of the Prometheus host to access"; description = "The URL of the Prometheus host to access";
}; };
lokiUrl = lib.mkOption lokiUrl = lib.mkOption
{ type = lib.types.str; { type = lib.types.str;
example = lib.literalExample "http://loki:3100/"; example = lib.literalExample "http://loki:3100/";
default = "http://loki:3100/"; default = "http://localhost:3100/";
description = "The URL of the Loki host to access"; description = "The URL of the Loki host to access";
}; };
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment