Skip to content

Commit c189ea7

Browse files
authored
Merge pull request #1233 from cloudfoundry/add-ops-file-to-enable-cc-worker-metrics
Add ops file to enable cc-worker metrics
2 parents 47df83b + 4549baa commit c189ea7

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

operations/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ This is the README for Ops-files. To learn more about `cf-deployment`, go to the
4545
| [`disable-tls-tcp-routing-isolation-segment-stage-2-route-emitter.yml`](disable-tls-tcp-routing-isolation-segment-stage-2-route-emitter.yml) | Stage 2 deployment for disabling TLS for TCP Routes on isolation segments. See [configuring TCP routes](https://docs.cloudfoundry.org/adminguide/enabling-tcp-routing.html#tls-tcp-routes) for more info. | | **NO ** |
4646
| [`enable-cc-rate-limiting.yml`](enable-cc-rate-limiting.yml) | Enable rate limiting for UAA-authenticated endpoints. | Introduces variables `cc_rate_limiter_general_limit` and `cc_rate_limiter_unauthenticated_limit` | **NO** |
4747
| [`enable-cc-v2-rate-limiting.yml`](enable-cc-rate-limiting.yml) | Enable V2 API rate limiting for UAA-authenticated endpoints. | Introduces variables `cc_v2_rate_limiter_general_limit`, `cc_v2_rate_limiter_admin_limit` and `cc_v2_rate_limiter_reset_interval_in_minutes` | **NO** |
48+
| [`enable-cc-worker-metrics.yml`](enable-cc-worker-metrics.yml) | Enable metrics for cc-workers. | This will setup the metrics endpoint, configure the prom_scraper job and uses mTLS. If you want to use another scraper than prom_scraper you can additionally set `cc.prom_scraper.disabled` to true. | **NO** |
4849
| [`enable-cpu-throttling.yml`](enable-cpu-throttling.yml) | Configure Garden containers with CPU entitlement. | This ops file requires `set-cpu-weight.yml`. | **YES** |
4950
| [`enable-nfs-ldap.yml`](enable-nfs-ldap.yml) | Enables LDAP authentication for NFS volume services | Requires `enable-nfs-volume-service.yml`. Introduces [new variables](example-vars-files/vars-enable-nfs-ldap.yml) | **NO** |
5051
| [`enable-nfs-volume-service.yml`](enable-nfs-volume-service.yml) | Enables volume support and deploys an NFS broker and volume driver | As of cf-deployment v2, you must use the `nfsbrokerpush` errand to cf push the nfs broker after `bosh deploy` completes. | **YES** |
+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
- type: replace
3+
path: /instance_groups/name=cc-worker/jobs/name=cloud_controller_worker/properties/cc/publish_metrics?
4+
value: true
5+
6+
- type: replace
7+
path: /instance_groups/name=cc-worker/jobs/name=cloud_controller_worker/properties/cc/prom_scraper_tls?
8+
value:
9+
ca_cert: ((cc_worker_prom_scraper_scrape_tls.ca))
10+
private_key: ((cc_worker_prom_scraper_scrape_tls.private_key))
11+
public_cert: ((cc_worker_prom_scraper_scrape_tls.certificate))
12+
13+
- type: replace
14+
path: /variables/-
15+
value:
16+
name: cc_worker_prom_scraper_scrape_tls
17+
options:
18+
alternative_names:
19+
- cc_worker_metrics
20+
ca: metric_scraper_ca
21+
common_name: cc_worker_metrics
22+
extended_key_usage:
23+
- client_auth
24+
- server_auth
25+
type: certificate
26+
update_mode: converge

units/tests/standard_test/operations.yml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ enable-cc-v2-rate-limiting.yml:
1919
- cc_v2_rate_limiter_general_limit=blah
2020
- cc_v2_rate_limiter_admin_limit=something
2121
- cc_v2_rate_limiter_reset_interval_in_minutes=else
22+
enable-cc-worker-metrics.yml: {}
2223
enable-cpu-throttling.yml: {}
2324
enable-nfs-ldap.yml:
2425
ops:

0 commit comments

Comments
 (0)