forked from cloudfoundry/cf-deployment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadd-system-metrics-agent.yml
145 lines (145 loc) · 4.36 KB
/
add-system-metrics-agent.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
- type: replace
path: /addons/name=loggr-system-metrics-agent?
value:
exclude:
jobs:
- name: smoke_tests
release: cf-smoke-tests
include:
stemcell:
- os: ubuntu-bionic
- os: ubuntu-jammy
jobs:
- name: loggr-system-metrics-agent
properties:
metrics_port: 53035
system_metrics:
tls:
ca_cert: ((system_metrics.ca))
cert: ((system_metrics.certificate))
key: ((system_metrics.private_key))
release: system-metrics
name: loggr-system-metrics-agent
- type: replace
path: /instance_groups/name=scheduler/jobs/name=loggr-system-metric-scraper?
value:
name: loggr-system-metric-scraper
properties:
leadership_election:
ca_cert: ((leadership_election_client_tls.ca))
cert: ((leadership_election_client_tls.certificate))
key: ((leadership_election_client_tls.private_key))
metrics:
ca_cert: ((loggr_metric_scraper_metrics_tls.ca))
cert: ((loggr_metric_scraper_metrics_tls.certificate))
key: ((loggr_metric_scraper_metrics_tls.private_key))
server_name: loggr_metric_scraper_metrics
nats_client:
cert: ((nats_client_cert.certificate))
key: ((nats_client_cert.private_key))
scrape_port: 53035
system_metrics:
tls:
ca_cert: ((system_metrics.ca))
cert: ((system_metrics.certificate))
key: ((system_metrics.private_key))
release: system-metrics-scraper
- type: replace
path: /instance_groups/name=scheduler/instances
value: 3
- type: replace
path: /instance_groups/name=scheduler/jobs/name=leadership-election?
value:
name: leadership-election
properties:
metrics:
ca_cert: ((leadership_election_metrics_tls.ca))
cert: ((leadership_election_metrics_tls.certificate))
key: ((leadership_election_metrics_tls.private_key))
server_name: leadership_election_metrics
port: 7100
tls:
ca_cert: ((leadership_election_tls.ca))
cert: ((leadership_election_tls.certificate))
key: ((leadership_election_tls.private_key))
release: system-metrics-scraper
- type: replace
path: /variables/name=system_metrics?
value:
name: system_metrics
options:
alternative_names:
- system-metrics
ca: loggregator_ca
common_name: system-metrics
extended_key_usage:
- client_auth
- server_auth
type: certificate
update_mode: converge
- type: replace
path: /releases/name=system-metrics?
value:
name: system-metrics
sha1: 89b966f573bd02c611d6499b9cbd7888d09e62af
url: https://bosh.io/d/github.com/cloudfoundry/system-metrics-release?v=3.0.7
version: 3.0.7
- type: replace
path: /releases/name=system-metrics-scraper?
value:
name: system-metrics-scraper
sha1: 59aa1c2a79bea13f4aa8931119ce19663d5e2b51
url: https://bosh.io/d/github.com/cloudfoundry/system-metrics-scraper-release?v=4.0.8
version: 4.0.8
- type: replace
path: /variables/name=leadership_election_tls?
value:
name: leadership_election_tls
options:
alternative_names:
- leadership_election
ca: loggregator_ca
common_name: leadership_election
extended_key_usage:
- server_auth
type: certificate
update_mode: converge
- type: replace
path: /variables/name=leadership_election_client_tls?
value:
name: leadership_election_client_tls
options:
alternative_names:
- leadership_election_client
ca: loggregator_ca
common_name: leadership_election_client
extended_key_usage:
- client_auth
type: certificate
update_mode: converge
- type: replace
path: /variables/name=loggr_metric_scraper_metrics_tls?
value:
name: loggr_metric_scraper_metrics_tls
options:
alternative_names:
- loggr_metric_scraper_metrics
ca: metric_scraper_ca
common_name: loggr_metric_scraper_metrics
extended_key_usage:
- server_auth
type: certificate
update_mode: converge
- type: replace
path: /variables/name=leadership_election_metrics_tls?
value:
name: leadership_election_metrics_tls
options:
alternative_names:
- leadership_election_metrics
ca: metric_scraper_ca
common_name: leadership_election_metrics
extended_key_usage:
- server_auth
type: certificate
update_mode: converge