fix: final set of changes to get it working
This commit is contained in:
parent
b8c6e153a4
commit
9148963c1f
2 changed files with 3 additions and 2 deletions
|
@ -67,9 +67,10 @@ in {
|
|||
datasources.settings.datasources = [
|
||||
{
|
||||
name = cfg.datasource.name;
|
||||
type = "Prometheus";
|
||||
type = "prometheus";
|
||||
url = cfg.datasource.url;
|
||||
isDefault = true;
|
||||
editable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
|
|
@ -61,7 +61,7 @@ in {
|
|||
job_name = "node_exporter";
|
||||
static_configs = [
|
||||
{
|
||||
targets = (map (hostname: "${hostname}:${cfg.port_collecter}") (lib.attrsets.mapAttrsToList (server: server.deployment.hostname)) nodes) ++ cfg.other_nodes;
|
||||
targets = (lib.attrsets.mapAttrsToList (key: value: "${value.config.deployment.targetHost}:${toString cfg.port_collecter}") nodes) ++ cfg.server.other_nodes;
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue