feat: several updates
This commit is contained in:
@@ -27,25 +27,27 @@ in
|
||||
version = true;
|
||||
};
|
||||
configFile = config.age.secrets.metrics-pve.path;
|
||||
listenAddress = "0.0.0.0";
|
||||
openFirewall = true;
|
||||
port = 9221;
|
||||
};
|
||||
globalConfig = {
|
||||
scrape_interval = "30s";
|
||||
};
|
||||
scrapeConfigs = [
|
||||
{
|
||||
job_name = "prometheus";
|
||||
static_configs = [
|
||||
{
|
||||
targets = [ "localhost:9090" ];
|
||||
labels = {
|
||||
host = tools.build_hostname "metrics";
|
||||
host_ip = tools.build_ip "metrics";
|
||||
service = "prometheus";
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
# {
|
||||
# job_name = "prometheus";
|
||||
# static_configs = [
|
||||
# {
|
||||
# targets = [ "localhost:9090" ];
|
||||
# labels = {
|
||||
# host = tools.build_hostname "metrics";
|
||||
# host_ip = tools.build_ip "metrics";
|
||||
# service = "prometheus";
|
||||
# };
|
||||
# }
|
||||
# ];
|
||||
# }
|
||||
{
|
||||
job_name = "proxmox";
|
||||
static_configs = [
|
||||
|
||||
Reference in New Issue
Block a user