summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2020-12-01 23:20:05 +0100
committermakefu <github@syntax-fehler.de>2020-12-01 23:20:05 +0100
commit9f2c161de0f7e807e66dd114f913db6acecd666b (patch)
tree6b3caecb4f282c71657e680336989d002c773691
parent08a48b931ba709e69730cad9bfdac0b90b1311d6 (diff)
shack/powerraw: fix telegraf tags (which cannot be int for some reason now)
-rw-r--r--krebs/2configs/shack/powerraw.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/krebs/2configs/shack/powerraw.nix b/krebs/2configs/shack/powerraw.nix
index 4118e7a72..3cf6beb28 100644
--- a/krebs/2configs/shack/powerraw.nix
+++ b/krebs/2configs/shack/powerraw.nix
@@ -67,7 +67,7 @@ in {
};
sensor = "total";
types = [ "Voltage" "Current" "Power" ];
- phases = [ 1 2 3 ];
+ phases = [ "1" "2" "3" ];
in
[ (genTopic "Power consumed" "/power/${sensor}/consumed" { inherit sensor; }) ] ++
(lib.flatten (map (type: (map (phase: (genTopic "Power" "/power/${sensor}/L${toString phase}/${type}" { inherit sensor phase type; }) ) phases)) types));