mirror of
https://github.com/dump-dvb/nix-config.git
synced 2024-06-14 20:06:57 +02:00
grafana metrics collector
This commit is contained in:
parent
9d2960940d
commit
2166c009ab
|
@ -54,14 +54,7 @@ in
|
||||||
replacement = "${exporter}";
|
replacement = "${exporter}";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
} ++ [
|
};
|
||||||
{
|
|
||||||
job_name = "funnel-connections";
|
|
||||||
static_configs = [{
|
|
||||||
targets = [ "10.13.37.1:9010" ];
|
|
||||||
}];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
# generate scraper config
|
# generate scraper config
|
||||||
makeScrapeConfigHost = name: exporters: lib.mapAttrs (makeScrapeConfig name) exporters;
|
makeScrapeConfigHost = name: exporters: lib.mapAttrs (makeScrapeConfig name) exporters;
|
||||||
|
@ -69,7 +62,14 @@ in
|
||||||
|
|
||||||
TLMSScrapeConfigs = lib.lists.flatten (map lib.attrValues (lib.attrValues ScrapeConfigByHost));
|
TLMSScrapeConfigs = lib.lists.flatten (map lib.attrValues (lib.attrValues ScrapeConfigByHost));
|
||||||
in
|
in
|
||||||
TLMSScrapeConfigs;
|
TLMSScrapeConfigs ++ [
|
||||||
|
{
|
||||||
|
job_name = "funnel-connections";
|
||||||
|
static_configs = [{
|
||||||
|
targets = [ "10.13.37.1:9010" ];
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
# log collector
|
# log collector
|
||||||
loki = {
|
loki = {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user