monitoring: add nixos-exporter to monitoring01
Some checks failed
Run nix flake check / flake-check (push) Has been cancelled

Enable the nixos-exporter prometheus exporter with flake collector
to track NixOS generation metrics and flake revision status.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-06 23:04:12 +01:00
parent f2c30cc24f
commit bb9d489ab0
3 changed files with 44 additions and 0 deletions

View File

@@ -17,6 +17,10 @@
url = "git+https://git.t-juice.club/torjus/labmon?ref=master";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
nixos-exporter = {
url = "git+https://git.t-juice.club/torjus/nixos-exporter";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
};
outputs =
@@ -27,6 +31,7 @@
sops-nix,
alerttonotify,
labmon,
nixos-exporter,
...
}@inputs:
let
@@ -180,6 +185,7 @@
./hosts/monitoring01
sops-nix.nixosModules.sops
labmon.nixosModules.labmon
nixos-exporter.nixosModules.default
];
};
jelly01 = nixpkgs.lib.nixosSystem {