We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86a80ee commit 2f3e9b2Copy full SHA for 2f3e9b2
profiles/auxiliaries/promtail.nix
@@ -1,8 +1,10 @@
1
-_: {
2
- services.promtail.enable = true;
+{ lib, config, ... }: {
+ services.promtail = lib.mkIf (config.cluster.nodes ? monitoring) {
3
+ enable = true;
4
- services.promtail.clients = [{
5
- url =
6
- "http://${config.cluster.nodes.monitoring.privateIP}:3100/loki/api/v1/push";
7
- }];
+ clients = [{
+ url =
+ "http://${config.cluster.nodes.monitoring.privateIP}:3100/loki/api/v1/push";
8
+ }];
9
+ };
10
}
0 commit comments