containers/scrape: scrape luftdaten

This commit is contained in:
Astro 2020-04-04 01:39:01 +02:00
parent 95c33dc243
commit 3feed02e45
2 changed files with 10 additions and 1 deletions

View File

@ -43,6 +43,10 @@
script = "xerox";
host = "roxi.hq.c3d2.de";
};
scrape-luftdaten = makeService {
script = "luftdaten";
host = "";
};
};
systemd.timers.scrape-xeri = {
partOf = [ "scrape-xeri.service" ];
@ -54,6 +58,11 @@
wantedBy = [ "timers.target" ];
timerConfig.OnCalendar = "minutely";
};
systemd.timers.scrape-luftdaten = {
partOf = [ "scrape-luftdaten.service" ];
wantedBy = [ "timers.target" ];
timerConfig.OnCalendar = "minutely";
};
# This value determines the NixOS release with which your system is to be
# compatible, in order to avoid breaking some software such as database

View File

@ -27,6 +27,6 @@ let
target = "root@${host}";
};
in {
scrape = deployContainer "scrape" "172.20.73.28";
scrape = deployContainer "scrape" "172.20.73.32";
ledstripes = deployContainer "ledstripes" "172.22.99.168";
}