-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtelegraf.nix
44 lines (44 loc) · 924 Bytes
/
telegraf.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
let
secrets = import ./secrets.nix;
in
{
services.telegraf = {
enable = true;
extraConfig = {
inputs = {
cpu = {
percpu = true;
totalcpu = true;
collect_cpu_time = false;
report_active = false;
};
disk = {
ignore_fs = [
"tmpfs"
"devtmpfs"
"devfs"
"iso9660"
"overlay"
"aufs"
"squashfs"
];
};
diskio = { };
mem = { };
nstat = { };
processes = { };
swap = { };
system = { };
temp = { };
};
outputs = {
influxdb_v2 = {
urls = [ secrets.telegraf.system.host ];
token = secrets.telegraf.system.token;
organization = secrets.telegraf.system.org;
bucket = secrets.telegraf.system.bucket;
};
};
};
};
}