ma telegraf: separate, add airsensor

This commit is contained in:
makefu 2017-12-05 15:16:13 +01:00
parent db881d51d7
commit f0871d18ac
2 changed files with 15 additions and 3 deletions

View file

@ -0,0 +1,15 @@
{ pkgs, ...}:
{
services.telegraf.extraConfig.inputs.exec = [
{
commands = [ "${pkgs.airsensor-py}/bin/airsensor-py"];
timeout = "10s";
data_format = "value";
data_type = "integer";
name_override = "airquality";
interval = "10s";
tags.unit="VOC";
}
];
}

View file

@ -2,9 +2,6 @@
let
url = "http://localhost:8086";
in {
imports = [
./europastats.nix
];
services.telegraf = {
enable = true;
extraConfig = {