Remove telegraf from all hosts
I basically ignore the data anyway. I'll redo monitoring from the ground up later.
This commit is contained in:
parent
d5b308d2d1
commit
8e821442af
15 changed files with 0 additions and 312 deletions
|
@ -10,7 +10,6 @@
|
|||
./smartd
|
||||
./ssh
|
||||
./sshd
|
||||
./telegraf
|
||||
./tmux
|
||||
./zfs
|
||||
./zsh
|
||||
|
|
|
@ -1,50 +0,0 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.telegraf = {
|
||||
enable = true;
|
||||
extraConfig = {
|
||||
agent = {
|
||||
interval = "10s";
|
||||
round_interval = true;
|
||||
metric_batch_size = 1000;
|
||||
metric_buffer_limit = 10000;
|
||||
collection_jitter = "0s";
|
||||
flush_interval = "10s";
|
||||
flush_jitter = "0s";
|
||||
precision = "0s";
|
||||
omit_hostname = false;
|
||||
};
|
||||
outputs.influxdb_v2 = {
|
||||
urls = [ "https://stats.chvp.be:8086" ];
|
||||
token = "$TOKEN";
|
||||
organization = "default";
|
||||
bucket = "default";
|
||||
};
|
||||
inputs = {
|
||||
cpu = {
|
||||
percpu = true;
|
||||
totalcpu = true;
|
||||
collect_cpu_time = false;
|
||||
report_active = false;
|
||||
};
|
||||
diskio = { };
|
||||
exec = {
|
||||
commands = [ "${pkgs.zfs}/libexec/zfs/zpool_influxdb" ];
|
||||
timeout = "5s";
|
||||
data_format = "influx";
|
||||
};
|
||||
kernel = { };
|
||||
mem = { };
|
||||
processes = { };
|
||||
swap = { };
|
||||
system = { };
|
||||
};
|
||||
};
|
||||
environmentFiles = [ config.age.secrets."passwords/services/telegraf-env".path ];
|
||||
};
|
||||
age.secrets."passwords/services/telegraf-env" = {
|
||||
file = ../../../../secrets/passwords/services/telegraf-env.age;
|
||||
owner = "telegraf";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue