VEGAS/monitoring: fix Prometheus targets
This commit is contained in:
parent
0ee7b151b3
commit
dc1cee54b6
1 changed files with 3 additions and 5 deletions
|
@ -27,8 +27,6 @@ let
|
||||||
|
|
||||||
login = x: "https://login.${domain}/auth/realms/master/protocol/openid-connect/${x}";
|
login = x: "https://login.${domain}/auth/realms/master/protocol/openid-connect/${x}";
|
||||||
|
|
||||||
filteredHosts = lib.filterAttrs (_: host: host ? hypr && host ? nixos) hosts;
|
|
||||||
|
|
||||||
myNode = hosts.${config.networking.hostName};
|
myNode = hosts.${config.networking.hostName};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
@ -115,8 +113,8 @@ in
|
||||||
scrapeConfigs = [
|
scrapeConfigs = [
|
||||||
{
|
{
|
||||||
job_name = "node";
|
job_name = "node";
|
||||||
static_configs = lib.flip lib.mapAttrsToList filteredHosts (name: host: {
|
static_configs = lib.flip lib.mapAttrsToList cluster.config.vars.mesh (name: host: {
|
||||||
targets = [ "${host.hypr.addr}:9100" ];
|
targets = [ "${host.meshIp}:9100" ];
|
||||||
labels.instance = name;
|
labels.instance = name;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -124,7 +122,7 @@ in
|
||||||
job_name = "jitsi";
|
job_name = "jitsi";
|
||||||
static_configs = [
|
static_configs = [
|
||||||
{
|
{
|
||||||
targets = [ "${hosts.prophet.hypr.addr}:9700" ];
|
targets = [ "${cluster.config.vars.mesh.prophet.meshIp}:9700" ];
|
||||||
labels.instance = "meet.${domain}";
|
labels.instance = "meet.${domain}";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
Loading…
Add table
Reference in a new issue