grafana metrics collector

This commit is contained in:
Tassilo - 2023-07-21 21:32:23 +02:00
parent 9d2960940d
commit 2166c009ab
Signed by: revol-xut
GPG Key ID: 4F56FF7759627D07
1 changed files with 9 additions and 9 deletions

View File

@ -54,14 +54,7 @@ in
replacement = "${exporter}";
}
];
} ++ [
{
job_name = "funnel-connections";
static_configs = [{
targets = [ "10.13.37.1:9010" ];
}];
}
];
};
# generate scraper config
makeScrapeConfigHost = name: exporters: lib.mapAttrs (makeScrapeConfig name) exporters;
@ -69,7 +62,14 @@ in
TLMSScrapeConfigs = lib.lists.flatten (map lib.attrValues (lib.attrValues ScrapeConfigByHost));
in
TLMSScrapeConfigs;
TLMSScrapeConfigs ++ [
{
job_name = "funnel-connections";
static_configs = [{
targets = [ "10.13.37.1:9010" ];
}];
}
];
};
# log collector
loki = {