-
Notifications
You must be signed in to change notification settings - Fork 163
/
monitor-cf.yml
96 lines (87 loc) · 2.89 KB
/
monitor-cf.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
# Apply ./cf/add-prometheus-uaa-clients.yml to your cf-deployment based Cloud Foundry
# This file assumes bosh_exporter based Service Discovery is being used: ./monitor-bosh.yml
# Exporter jobs
- type: replace
path: /instance_groups/name=prometheus2/jobs/-
value:
name: cf_exporter
release: prometheus
properties:
cf_exporter:
cf:
api_url: https://api.((system_domain))
client_id: cf_exporter
client_secret: "((uaa_clients_cf_exporter_secret))"
deployment_name: ((metron_deployment_name))
metrics:
environment: "((metrics_environment))"
skip_ssl_verify: ((skip_ssl_verify))
- type: replace
path: /instance_groups/name=prometheus2/jobs/name=bpm?
value:
name: bpm
release: bpm
- type: replace
path: /instance_groups/-
value:
name: firehose
azs:
- z1
instances: 1
vm_type: default
stemcell: default
networks:
- name: default
jobs:
- name: bpm
release: bpm
- name: firehose_exporter
release: prometheus
consumes:
reverse_log_proxy:
deployment: cf
from: reverse_log_proxy
properties:
firehose_exporter:
doppler:
subscription_id: "((metrics_environment))"
logging:
tls:
ca: ((firehose_exporter_to_logs_provider.ca))
cert: ((firehose_exporter_to_logs_provider.certificate))
key: ((firehose_exporter_to_logs_provider.private_key))
metrics:
environment: "((metrics_environment))"
skip_ssl_verify: ((skip_ssl_verify))
- type: replace
path: /variables/-
value:
name: firehose_exporter_to_logs_provider
update_mode: converge
options:
# generally set it to /bosh-((name))/cf/loggregator_ca
ca: ((loggregator_ca_name))
common_name: firehose-exporter
extended_key_usage:
- client_auth
- server_auth
alternative_names:
- firehose-exporter
type: certificate
# Prometheus Alerts
- type: replace
path: /instance_groups/name=prometheus2/jobs/name=cloudfoundry_alerts?/release
value: prometheus
- type: replace
path: /instance_groups/name=prometheus2/jobs/name=prometheus2/properties/prometheus/rule_files/-
value: /var/vcap/jobs/cloudfoundry_alerts/*.alerts.yml
# Grafana Dashboards
- type: replace
path: /instance_groups/name=grafana/jobs/name=cloudfoundry_dashboards?/release
value: prometheus
- type: replace
path: /instance_groups/name=grafana/jobs/name=grafana/properties/grafana/prometheus/dashboard_folders/name=Cloudfoundry?/files/-
value: /var/vcap/jobs/cloudfoundry_dashboards/cf*.json
- type: replace
path: /instance_groups/name=grafana/jobs/name=grafana/properties/grafana/prometheus/dashboard_folders/name=Prometheus?/files/-
value: /var/vcap/jobs/cloudfoundry_dashboards/prometheus*.json