ma telegraf: separate, add airsensor
This commit is contained in:
parent
db881d51d7
commit
f0871d18ac
15
2configs/stats/telegraf/airsensor.nix
Normal file
15
2configs/stats/telegraf/airsensor.nix
Normal 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";
|
||||
}
|
||||
];
|
||||
}
|
|
@ -2,9 +2,6 @@
|
|||
let
|
||||
url = "http://localhost:8086";
|
||||
in {
|
||||
imports = [
|
||||
./europastats.nix
|
||||
];
|
||||
services.telegraf = {
|
||||
enable = true;
|
||||
extraConfig = {
|
||||
|
|
Loading…
Reference in a new issue