blob: baef38cdbdd06c9449455fafbdba0b0cb831870c (
plain) (
blame)
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
|
---
prometheus_ui_listen: ':9090'
prometheus_home_dir: /var/lib/prometheus
prometheus_data_dir: '{{prometheus_home_dir}}/data'
prometheus_retention_time: "730d"
prometheus_log: '{{prometheus_home_dir}}/log'
prometheus_user: prometheus
prometheus_version: "2.30.3"
# Should resolve to "linux"
prometheus_os: "{{ansible_facts['system']|lower}}"
prometheus_checksum: 1ccd386d05f73a98b69aa5e0ed31fffac95cd9dadf7df1540daf2f182c5287e2
prometheus_architecture: amd64
prometheus_url: "https://github.com/prometheus/prometheus/releases/download/v{{prometheus_version}}/prometheus-{{prometheus_version}}.{{prometheus_os}}-{{prometheus_architecture}}.tar.gz"
# Newlines are automatically replaced with spaces
prometheus_opts: |
--config.file "{{prometheus_home_dir}}/conf/prometheus.yml"
--storage.tsdb.path "{{prometheus_data_dir}}"
--storage.tsdb.retention.time "{{prometheus_retention_time}}"
--web.listen-address "{{prometheus_ui_listen}}"
--web.enable-admin-api
# Be sure to set `--web.config.file={{prometheus_home_dir}}/conf/web_conf.yml`
# if you enable this
# prometheus_web_config:
# tls_server_config:
# cert_file: '{{prometheus_home_dir}}/conf/crt'
# key_file: '{{prometheus_home_dir}}/conf/key'
# client_ca_file: '{{prometheus_home_dir}}/conf/ca.crt'
# client_auth_type: RequireAndVerifyClientCert
# Anything defined in this map is written out verbatim to the conf/ dir
# prometheus_other_config:
# filename: |
# Some content in here
# Filtered through 'to_nice_json'
# prometheus_config:
alertmanager: true
alertmanager_version: '0.23.0'
alertmanager_checksum_alg: sha256
alertmanager_checksum: 77793c4d9bb92be98f7525f8bc50cb8adb8c5de2e944d5500e90ab13918771fc
alertmanager_url: 'https://github.com/prometheus/alertmanager/releases/download/v{{alertmanager_version}}/alertmanager-{{alertmanager_version}}.{{prometheus_os}}-{{prometheus_architecture}}.tar.gz'
alertmanager_port: '9093'
# Note that this is also UDP
alertmanager_cluster_port: '9094'
alertmanager_data_dir: '{{prometheus_home_dir}}/alertmanager-data'
alertmanager_log: '{{prometheus_home_dir}}/alertmanager.log'
# Newlines are automatically replaced with spaces
# you can reuse the same --web.config.file from prometheus here
alertmanager_opts: |
--config.file "{{prometheus_home_dir}}/conf/alertmanager.yml"
--storage.path {{alertmanager_data_dir}}
--web.listen-address "0.0.0.0:{{alertmanager_port}}"
--cluster.listen-address "0.0.0.0:{{alertmanager_cluster_port}}"
# You can either specify them by hand, or pull them out of the inventory with
# a query()
# alertmanager_nodes:
# - prometheus0.example.com
# - prometheus1.example.com
# alertmanager_nodes: "{{query('inventory_hostnames', 'prometheus')}}"
# alertmanager_conf:
# global:
# # The API URL to use for Slack notifications.
# slack_api_url: '{{slack_webhook_uri}}'
#
# route:
# receiver: 'slack-notifications'
#
# receivers:
# - name: 'slack-notifications'
# slack_configs:
# - channel: '#{{slack_alerts_channel}}'
# send_resolved: true
blackbox_exporter: false
blackbox_exporter_version: 0.19.0
blackbox_exporter_checksum: af2ae1394c4f9b46962ac1510e1dacac78115c11e625991fb6c54825d2240896
blackbox_exporter_url: 'https://github.com/prometheus/blackbox_exporter/releases/download/v{{blackbox_exporter_version}}/blackbox_exporter-{{blackbox_exporter_version}}.{{prometheus_os}}-{{prometheus_architecture}}.tar.gz'
blackbox_exporter_bind: 127.0.0.1:9115
blackbox_exporter_log: '{{prometheus_home_dir}}/blackbox_exporter.log'
blackbox_exporter_opts: |
--web.listen-address="{{blackbox_exporter_bind}}"
--config.file={{prometheus_home_dir}}/conf/blackbox_exporter.yml
# Check out:
# https://github.com/prometheus/blackbox_exporter/blob/master/example.yml
blackbox_exporter_conf:
alertmanager_discord: false
alertmanager_discord_url: 'https://git.riedstra.dev/pub/alertmanager-discord/plain/build/alertmanager-discord-{{prometheus_os}}-{{prometheus_architecture}}.gz?h=binaries'
# Linux amd64
alertmanager_discord_checksum: 3cd33d08824f140d93d7cdbfcb054be730b542d2afd33e9b47723b8270809325
blackbox_exporter_checksum_alg: sha256
alertmanager_discord_port: '9098'
alertmanager_discord_webhook_url: "<changeme>"
alertmanager_discord_opts: |
-listen.address "127.0.0.1:{{alertmanager_discord_port}}"
-webhook.url "{{alertmanager_discord_webhook_url}}"
alertmanager_discord_log: '{{prometheus_home_dir}}/alertmanager_discord.log'
|