Skip to content

Commit

Permalink
Add more metrics to Telegraf
Browse files Browse the repository at this point in the history
  • Loading branch information
diamondburned committed Oct 6, 2023
1 parent b53c5e9 commit f1b6ec4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions servers/cirno/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,16 @@ in
swap = {};
system = {};
diskio = {};
processes = {};
prometheus = {
urls = [
"http://localhost:2019/metrics" # Caddy
];
};
systemd_units = {};
internet_speed = {
interval = "2h";
};
};
outputs = {
influxdb = {
Expand Down
7 changes: 7 additions & 0 deletions servers/cs306/services.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,26 @@ in
enable = true;
extraConfig = {
inputs = {
# TODO: per-service procstat
net = {};
mem = {};
cpu = { percpu = true; totalcpu = true; };
disk = {};
swap = {};
temp = {};
system = {};
kernel = {}; # ctx switch go brr
diskio = {};
processes = {};
prometheus = {
urls = [
"http://localhost:2019/metrics" # Caddy
];
};
systemd_units = {};
internet_speed = {
interval = "2h";
};
};
outputs = {
influxdb = {
Expand Down

0 comments on commit f1b6ec4

Please sign in to comment.