-
Notifications
You must be signed in to change notification settings - Fork 1
/
configPrometheus.yml
72 lines (64 loc) · 2.16 KB
/
configPrometheus.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
---
- name: install prometheus
import_role:
name: cloudalchemy.prometheus
become: true
vars:
prometheus_db_dir: "/data/prometheus"
prometheus_targets:
node:
- targets:
- localhost:9100 #206.12.94.110
#- 206-12-92-26.cloud.computecanada.ca:9100 #grafana server
- omerocloud.med.ualberta.ca:9100 #206.12.92.91 UofA production server
- 206-12-95-221.cloud.computecanada.ca:9100 # Training server
- 206-12-94-73.cloud.computecanada.ca:9100 # National omero
- 206-12-94-9.cloud.computecanada.ca:9100 # national omero backup
prometheus-omero:
- targets:
- omerocloud.med.ualberta.ca:9449
- 206-12-94-73.cloud.computecanada.ca:9449
- 206-12-95-221.cloud.computecanada.ca:9449
postgres:
- targets:
- omerocloud.med.ualberta.ca:9187
- 206-12-94-73.cloud.computecanada.ca:9187
- 206-12-95-221.cloud.computecanada.ca:9187
prometheus_scrape_jobs:
- job_name: django-prometheus
basic_auth:
username: monitoring
password: "monitoring"
metrics_path: /django_prometheus/metrics
scheme: https
static_configs:
- targets:
- omerocloud.med.ualberta.ca
- 206-12-94-73.cloud.computecanada.ca
- 206-12-95-221.cloud.computecanada.ca
- name: install alertmanager
import_role:
name: cloudalchemy.alertmanager
vars:
alertmanager_slack_api_url: 'https://hooks.slack.com/services/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'
alertmanager_receivers:
- name: slack
slack_configs:
- send_resolved: true
channel: '#alerts'
alertmanager_route:
group_by: ['alertname', 'cluster', 'service']
group_wait: 30s
group_interval: 5m
repeat_interval: 3h
receiver: slack
alertmanager_db_dir: "/data/alertmanager"
- name: install blacbox exporter
import_role:
name: cloudalchemy.blackbox-exporter
- name: install loki
import_role:
name: sco.loki
become: true
vars:
loki_db_dir: "/data/loki"