Merge pull request #405 from elohmeier/telegraf-prometheus-list

telegraf: use list for inputs.prometheus
This commit is contained in:
Jörg Thalheim 2024-04-12 18:35:14 +02:00 committed by GitHub
commit 2d627b9d37
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -88,11 +88,10 @@ in
extraConfig = {
agent.interval = "60s";
inputs = {
prometheus.urls = lib.mkIf config.services.promtail.enable [
# default promtail port
"http://localhost:9080/metrics"
];
prometheus.metric_version = 2;
prometheus = lib.mkIf config.services.promtail.enable [{
urls = [ "http://localhost:9080/metrics" ]; # default promtail port
metric_version = 2;
}];
kernel_vmstat = { };
nginx.urls = lib.mkIf config.services.nginx.statusPage [
"http://localhost/nginx_status"