feat: db & git backups, bots on matrix, proxmox monitors, ...
This commit is contained in:
@@ -15,6 +15,20 @@ in
|
||||
"--web.enable-remote-write-receiver"
|
||||
"--storage.tsdb.retention.time=${config.globals.retention}"
|
||||
];
|
||||
exporters.pve = {
|
||||
enable = true;
|
||||
collectors = {
|
||||
cluster = true;
|
||||
config = false;
|
||||
node = true;
|
||||
replication = false;
|
||||
resources = true;
|
||||
status = true;
|
||||
version = true;
|
||||
};
|
||||
configFile = config.age.secrets.metrics-pve.path;
|
||||
port = 9221;
|
||||
};
|
||||
globalConfig = {
|
||||
scrape_interval = "30s";
|
||||
};
|
||||
@@ -30,6 +44,14 @@ in
|
||||
service = "prometheus";
|
||||
};
|
||||
}
|
||||
{
|
||||
targets = [ "localhost:9221" ];
|
||||
labels = {
|
||||
host = tools.build_hostname "proxmox";
|
||||
host_ip = tools.build_ip "proxmox";
|
||||
service = "proxmox";
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user