Skip to content

Commit 7cd9534

Browse files
committed
Add configuration for publishing cc-worker metrics
1 parent 8ff3506 commit 7cd9534

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

jobs/cloud_controller_worker/spec

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,18 @@ properties:
425425
description: "The number of seconds to wait for each generic cloud_controller_worker worker process to finish processing jobs before forcefully shutting it down"
426426
default: 15
427427

428+
cc.publish_metrics:
429+
default: false
430+
description: "When set to true a small webserver will be started in a seperate thread within the first worker's process.
431+
This webserver will publish prometheus metrics of the workers under '/metrics'. The webserver will listen on the port
432+
defined in 'cc.prometheus_port'."
433+
cc.prometheus_port:
434+
default: 9394
435+
description: "When 'cc.publish_metrics' is set to true, the webserver, which publishes the metrics, will listen on this port."
436+
437+
cc.directories.tmpdir:
438+
default: "/var/vcap/data/cloud_controller_worker/tmp"
439+
description: "The directory to use for temporary files"
428440

429441
uaa.clients.cc-service-dashboards.secret:
430442
description: "Used for generating SSO clients for service brokers."

jobs/cloud_controller_worker/templates/cloud_controller_ng.yml.erb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,3 +356,9 @@ cpu_weight_max_memory: <%= link("cloud_controller_internal").p("cc.cpu_weight_ma
356356
max_manifest_service_binding_poll_duration_in_seconds: <%= p("cc.max_manifest_service_binding_poll_duration_in_seconds") %>
357357

358358
app_log_revision: <%= link("cloud_controller_internal").p("cc.app_log_revision") %>
359+
360+
publish_metrics: <%= p("cc.publish_metrics") %>
361+
prometheus_port: <%= p("cc.prometheus_port") %>
362+
363+
directories:
364+
tmpdir: <%= p("cc.directories.tmpdir") %>

0 commit comments

Comments
 (0)