grafana metrics collector
This commit is contained in:
parent
9d2960940d
commit
2166c009ab
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue