summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/logging/central-stats-server.nix
diff options
context:
space:
mode:
authorlassulus <lass@lassul.us>2017-02-05 23:10:23 +0100
committerlassulus <lass@lassul.us>2017-02-05 23:10:23 +0100
commit381d24634eddf4cc06d7f4043f4691e49bfd8611 (patch)
tree25459db6d1b3ffb93024bb87c552afee977e9233 /makefu/2configs/logging/central-stats-server.nix
parent7bcbb92979830bf8db28db5babad2527f2353805 (diff)
parentd8ab184c3336ae9874f266bd77cf305f10d4bdd4 (diff)
Merge remote-tracking branch 'prism/makefu'
Diffstat (limited to 'makefu/2configs/logging/central-stats-server.nix')
-rw-r--r--makefu/2configs/logging/central-stats-server.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/makefu/2configs/logging/central-stats-server.nix b/makefu/2configs/logging/central-stats-server.nix
index d4e73ab79..8151d4939 100644
--- a/makefu/2configs/logging/central-stats-server.nix
+++ b/makefu/2configs/logging/central-stats-server.nix
@@ -7,7 +7,7 @@ let
grafana-port = 3000; # TODO nginx forward
in {
imports = [
- ../../lass/3modules/kapacitor.nix
+ ../../../lass/3modules/kapacitor.nix
];
services.grafana.enable = true;
services.grafana.addr = "0.0.0.0";
@@ -45,11 +45,11 @@ in {
alarms = {
cpu_deadman = ''
var data = batch
- |query('''
+ |query(${"'''"}
SELECT mean("value") AS mean
FROM "collectd_db"."default"."cpu_value"
WHERE "type_instance" = 'idle' AND "type" = 'percent' fill(0)
- ''')
+ ${"'''"})
.period(10m)
.every(1m)
.groupBy('host')