monitoring #1

Merged
Ittihadyya merged 24 commits from monitoring into trunk 2024-12-20 18:16:41 +02:00
Showing only changes of commit 6c59595a11 - Show all commits

View file

@ -1,4 +1,4 @@
{molecules, ...}:{
{
universal.modules = [
{
services.prometheus.exporters = {
@ -13,14 +13,6 @@
];
glucose.modules = [
({
nixpkgs,
molecules,
...
}: let
ip = i: "10.24.1.${toString i}";
ips = builtins.mapAttrs (nixpkgs.lib.const ip) molecules;
ips' = builtins.mapAttrs (name: ip: "${ip}:6703") ips;
in {
services.prometheus = {
enable = true;
port = 6750;
@ -31,7 +23,7 @@
job_name = "devices";
static_configs = [
{
targets = ips';
targets = [ "10.24.1.4:6703" "10.24.1.9:6703" "10.24.1.16:6703" "10.24.1.225:6703" "10.24.1.196:6703" ];
}
];
}