Skip to content

Commit

Permalink
tiny1: add smartctl to grafana
Browse files Browse the repository at this point in the history
  • Loading branch information
hyshka committed Nov 27, 2024
1 parent 1c46184 commit 1bf25d3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions hosts/tiny1/services/grafana.nix
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,14 @@ in {
}
];
}
{
job_name = "smartcl";
static_configs = [
{
targets = ["127.0.0.1:${toString config.services.prometheus.exporters.smartctl.port}"];
}
];
}
{
job_name = "loki";
static_configs = [{targets = ["127.0.0.1:${toString config.services.loki.configuration.server.http_listen_port}"];}];
Expand All @@ -95,6 +103,14 @@ in {
enabledCollectors = ["systemd"];
listenAddress = "127.0.0.1";
};
smartctl = {
enable = true;
devices = [
config.filesystems."/mnt/disk3".device
config.filesystems."/mnt/parity1".device
];
listenAddress = "127.0.0.1";
};
# TODO: https://github.com/MindFlavor/prometheus_wireguard_exporter
#wireguard = {
# enable = true;
Expand Down

0 comments on commit 1bf25d3

Please sign in to comment.