This repository has been archived by the owner on Jan 12, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
vars
115 lines (108 loc) · 2.73 KB
/
vars
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
---
prometheus_web_external_url: "http://{{ ansible_host }}:9090"
prometheus_storage_retention: "31d"
prometheus_alertmanager_config:
- scheme: http
static_configs:
- targets:
- "{{ ansible_host }}:9093"
prometheus_targets:
node:
- targets:
"{{ groups['all'] | map('extract', hostvars, ['ansible_host']) | map('regex_replace', '$', ':9100') | list }}"
labels:
env: demo
alertmanager:
- targets:
- "{{ ansible_host }}:9093"
labels:
env: demo
grafana:
- targets:
- "{{ ansible_host }}:3000"
labels:
env: demo
prometheus_scrape_configs:
- job_name: "prometheus"
metrics_path: "/metrics"
static_configs:
- targets:
- "{{ ansible_host }}:9090"
- job_name: "random"
metrics_path: "/metrics"
static_configs:
- targets:
- "{{ ansible_host }}:8999"
- job_name: "caddy"
metrics_path: "/metrics"
static_configs:
- targets:
- "localhost:9180"
- job_name: "node"
file_sd_configs:
- files:
- "/etc/prometheus/file_sd/node.yml"
- job_name: "alertmanager"
file_sd_configs:
- files:
- "/etc/prometheus/file_sd/alertmanager.yml"
- job_name: "grafana"
file_sd_configs:
- files:
- "/etc/prometheus/file_sd/grafana.yml"
- job_name: 'blackbox'
metrics_path: /probe
params:
module: [http_2xx]
static_configs:
- targets:
- "http://{{ ansible_host }}:9100"
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: 127.0.0.1:9115 # Blackbox exporter.
- job_name: fcos-updates-stg
metrics_path: /metrics
scheme: https
static_configs:
- targets:
- "status.updates.coreos.stg.fedoraproject.org"
alertmanager_external_url: "http://{{ ansible_host }}:9093"
alertmanager_slack_api_url: "http://example.org"
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: 4h
receiver: slack
grafana_security:
admin_user: admin
admin_password: "{{ vault_grafana_password }}"
grafana_auth:
anonymous:
org_name: "Main Org."
org_role: Viewer
grafana_datasources:
- name: "Prometheus"
type: "prometheus"
access: "proxy"
url: "http://{{ ansible_host }}:9090"
isDefault: true
grafana_dashboards:
- dashboard_id: '1860'
revision_id: '12'
datasource: '{{ grafana_datasources.0.name }}'
- dashboard_id: '3662'
revision_id: '2'
datasource: '{{ grafana_datasources.0.name }}'
- dashboard_id: '4271'
revision_id: '4'
datasource: '{{ grafana_datasources.0.name }}'