diff --git a/nixos/modules/monitoring/exporters/tahoe.nix b/nixos/modules/monitoring/exporters/tahoe.nix index b891804c2d9c7e56e04277370b15a6dd12146f36..a537600ccf45e1634c9d0748ae479dc37ba4715e 100644 --- a/nixos/modules/monitoring/exporters/tahoe.nix +++ b/nixos/modules/monitoring/exporters/tahoe.nix @@ -63,6 +63,7 @@ in { # See https://github.com/prometheus/node_exporter#textfile-collector script = '' set -euo pipefail + NUM_CORRUPTION_ADVISORIES=$(find /storage/corruption-advisories/ -type f | wc -l) echo "tahoe_corruption_advisories_total $NUM_CORRUPTION_ADVISORIES" > "${cfg.outFile}.tmp"