fix: fix pve exporter configuration
This commit is contained in:
@@ -44,6 +44,11 @@ in
|
|||||||
service = "prometheus";
|
service = "prometheus";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
job_name = "proxmox";
|
||||||
|
static_configs = [
|
||||||
{
|
{
|
||||||
targets = [ "localhost:9221" ];
|
targets = [ "localhost:9221" ];
|
||||||
labels = {
|
labels = {
|
||||||
@@ -53,6 +58,10 @@ in
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
metrics_path = "/pve";
|
||||||
|
params = {
|
||||||
|
target = [ (tools.build_ip "proxmox") ];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
++ (lib.filter (sc: sc.static_configs != [ ]) (
|
++ (lib.filter (sc: sc.static_configs != [ ]) (
|
||||||
|
|||||||
@@ -8,7 +8,10 @@
|
|||||||
swap = 512;
|
swap = 512;
|
||||||
};
|
};
|
||||||
system = {
|
system = {
|
||||||
additionalPorts = [ 9090 ];
|
additionalPorts = [
|
||||||
|
9090
|
||||||
|
9221
|
||||||
|
];
|
||||||
importConfig = [
|
importConfig = [
|
||||||
../config/metrics-prometheus.nix
|
../config/metrics-prometheus.nix
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user