From b9fc3e0c60fc67bf4abc314c96a8bce7e046b52d Mon Sep 17 00:00:00 2001 From: Gilles Miraillet Date: Mon, 26 Feb 2024 14:01:03 +0100 Subject: [PATCH] adds possibility to customize --collector.workers argument's value in cf_exporter job configuration --- jobs/cf_exporter/spec | 3 +++ jobs/cf_exporter/templates/bpm.yml.erb | 1 + 2 files changed, 4 insertions(+) diff --git a/jobs/cf_exporter/spec b/jobs/cf_exporter/spec index 0366fa50..67a3a89d 100644 --- a/jobs/cf_exporter/spec +++ b/jobs/cf_exporter/spec @@ -22,6 +22,9 @@ properties: description: "Cloud Foundry Client Secret" cf_exporter.cf.deployment_name: description: "Cloud Foundry Deployment Name to be reported as a metric label" + cf_exporter.collector.workers: + description: "Number of workers to use for collectors" + default: 10 cf_exporter.filter.collectors: description: "Comma separated collectors to filter (Applications,Buildpacks,Events,IsolationSegments,Organizations,Routes,SecurityGroups,ServiceBindings,ServiceInstances,ServicePlans,Services,Spaces,Stacks), If not set, all collectors except Events are enabled." cf_exporter.log_stream: diff --git a/jobs/cf_exporter/templates/bpm.yml.erb b/jobs/cf_exporter/templates/bpm.yml.erb index 220d2c91..a940a3b3 100644 --- a/jobs/cf_exporter/templates/bpm.yml.erb +++ b/jobs/cf_exporter/templates/bpm.yml.erb @@ -5,6 +5,7 @@ args = [ "--log.level", p("cf_exporter.log_level"), "--log.stream", p("cf_exporter.log_stream"), "--cf.api_url", p("cf_exporter.cf.api_url"), + "--collector.workers", p("cf_exporter.collector.workers"), ] # program env variables