-
Notifications
You must be signed in to change notification settings - Fork 164
/
prometheus.yml
183 lines (174 loc) · 4.49 KB
/
prometheus.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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
---
name: prometheus
instance_groups:
- name: alertmanager
azs:
- z1
instances: 1
vm_type: default
persistent_disk: 1_024
stemcell: default
networks:
- name: default
jobs:
- name: alertmanager
release: prometheus
properties:
alertmanager:
route:
receiver: default
receivers:
- name: default
test_alert:
daily: true
- name: prometheus2
azs:
- z1
instances: 1
vm_type: default
persistent_disk: 10_240
stemcell: default
networks:
- name: default
jobs:
- name: prometheus2
release: prometheus
properties:
prometheus:
rule_files:
- /var/vcap/jobs/postgres_alerts/*.alerts.yml
- /var/vcap/jobs/prometheus_alerts/*.alerts.yml
scrape_configs:
- job_name: prometheus
static_configs:
- targets:
- localhost:9090
- name: postgres_alerts
release: prometheus
- name: prometheus_alerts
release: prometheus
- name: database
azs:
- z1
instances: 1
vm_type: default
persistent_disk: 10_240
stemcell: default
networks:
- name: default
jobs:
- name: postgres
release: postgres
properties:
databases:
port: 5432
databases:
- name: grafana
citext: true
roles:
- name: grafana
password: ((postgres_grafana_password))
- name: postgres_exporter
release: prometheus
properties:
postgres_exporter:
datasource_name: postgresql://grafana:((postgres_grafana_password))@127.0.0.1:5432/?sslmode=disable
- name: grafana
azs:
- z1
instances: 1
vm_type: default
persistent_disk: 1_024
stemcell: default
networks:
- name: default
jobs:
- name: bpm
release: bpm
- name: grafana
release: prometheus
properties:
grafana:
database:
type: postgres
port: 5432
name: grafana
user: grafana
password: ((postgres_grafana_password))
security:
admin_user: admin
admin_password: ((grafana_password))
secret_key: ((grafana_secret_key))
dashboards:
prometheus:
dashboard_folders:
- name: Grafana
files:
- /var/vcap/jobs/grafana_dashboards/*.json
- name: PostgreSQL
files:
- /var/vcap/jobs/postgres_dashboards/*.json
- name: Prometheus
files:
- /var/vcap/jobs/prometheus_dashboards/*.json
- name: grafana_dashboards
release: prometheus
- name: postgres_dashboards
release: prometheus
- name: prometheus_dashboards
release: prometheus
- name: nginx
azs:
- z1
instances: 1
vm_type: default
stemcell: default
networks:
- name: default
jobs:
- name: nginx
release: prometheus
properties:
nginx:
alertmanager:
auth_users:
- name: admin
password: ((alertmanager_password))
prometheus:
auth_users:
- name: admin
password: ((prometheus_password))
variables:
- name: alertmanager_password
type: password
- name: prometheus_password
type: password
- name: postgres_grafana_password
type: password
- name: grafana_password
type: password
- name: grafana_secret_key
type: password
update:
canaries: 1
max_in_flight: 32
canary_watch_time: 1000-100000
update_watch_time: 1000-100000
serial: false
stemcells:
- alias: default
os: ubuntu-jammy
version: latest
releases:
- name: postgres
version: 49
url: https://bosh.io/d/github.com/cloudfoundry/postgres-release?v=49
sha1: 337e7748baf8c28c6d9707d02debec8476da61c9
- name: prometheus
version: 30.5.1
url: https://github.com/cloudfoundry/prometheus-boshrelease/releases/download/v30.5.1/prometheus-30.5.1.tgz
sha1: c1f9e9a03f17f17d4f09c59ecd4de0cc8529628e
- name: bpm
version: 1.2.20
url: https://bosh.io/d/github.com/cloudfoundry/bpm-release?v=1.2.20
sha1: d3e85f17607fbe7fa4e8db1e797ef16fa411dd5d