-
Notifications
You must be signed in to change notification settings - Fork 165
/
Copy pathmonitor-elasticsearch.yml
32 lines (26 loc) · 1.11 KB
/
monitor-elasticsearch.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
# This file assumes bosh_exporter based Service Discovery is being used: ./monitor-bosh.yml
# If you run firehose2syslog ingestors as part of your elasticsearch deployment, consider using opsfile: ./monitor-elasticsearch-ingestors.yml
# Exporter jobs
- type: replace
path: /instance_groups/name=prometheus2/jobs/-
value:
name: elasticsearch_exporter
release: prometheus
properties:
elasticsearch_exporter:
es:
uri: "((elasticsearch_uri))"
# Prometheus Alerts
- type: replace
path: /instance_groups/name=prometheus2/jobs/name=elasticsearch_alerts?/release
value: prometheus
- type: replace
path: /instance_groups/name=prometheus2/jobs/name=prometheus2/properties/prometheus/rule_files/-
value: /var/vcap/jobs/elasticsearch_alerts/*.alerts.yml
# Grafana Dashboards
- type: replace
path: /instance_groups/name=grafana/jobs/name=elasticsearch_dashboards?/release
value: prometheus
- type: replace
path: /instance_groups/name=grafana/jobs/name=grafana/properties/grafana/prometheus/dashboard_folders/name=ElasticSearch?/files/-
value: /var/vcap/jobs/elasticsearch_dashboards/*.json