Skip to content

Commit

Permalink
adds possibility to customize --collector.workers argument's value in…
Browse files Browse the repository at this point in the history
… cf_exporter job configuration
  • Loading branch information
gmllt authored and benjaminguttmann-avtq committed Feb 26, 2024
1 parent b1a768e commit b9fc3e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jobs/cf_exporter/spec
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions jobs/cf_exporter/templates/bpm.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b9fc3e0

Please sign in to comment.