Skip to content

Commit

Permalink
Add configuration for publishing cc-worker metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
svkrieger committed Feb 3, 2025
1 parent 8ff3506 commit 7cd9534
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
12 changes: 12 additions & 0 deletions jobs/cloud_controller_worker/spec
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,18 @@ properties:
description: "The number of seconds to wait for each generic cloud_controller_worker worker process to finish processing jobs before forcefully shutting it down"
default: 15

cc.publish_metrics:
default: false
description: "When set to true a small webserver will be started in a seperate thread within the first worker's process.
This webserver will publish prometheus metrics of the workers under '/metrics'. The webserver will listen on the port
defined in 'cc.prometheus_port'."
cc.prometheus_port:
default: 9394
description: "When 'cc.publish_metrics' is set to true, the webserver, which publishes the metrics, will listen on this port."

cc.directories.tmpdir:
default: "/var/vcap/data/cloud_controller_worker/tmp"
description: "The directory to use for temporary files"

uaa.clients.cc-service-dashboards.secret:
description: "Used for generating SSO clients for service brokers."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -356,3 +356,9 @@ cpu_weight_max_memory: <%= link("cloud_controller_internal").p("cc.cpu_weight_ma
max_manifest_service_binding_poll_duration_in_seconds: <%= p("cc.max_manifest_service_binding_poll_duration_in_seconds") %>

app_log_revision: <%= link("cloud_controller_internal").p("cc.app_log_revision") %>

publish_metrics: <%= p("cc.publish_metrics") %>
prometheus_port: <%= p("cc.prometheus_port") %>

directories:
tmpdir: <%= p("cc.directories.tmpdir") %>

0 comments on commit 7cd9534

Please sign in to comment.