summaryrefslogtreecommitdiff
path: root/roles/monitoring/prometheus/server/defaults/main/main.yml
blob: 0925b79b55fc4a3691c9d0704c15120450dde9f2 (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
---
# prometheus_server_storage:
#   type: (zfs|lvm)
#   ...

# prometheus_server_version:

prometheus_server_retention: "15d"
# prometheus_server_external_labels:
#   environment: foo
#   monitor: {{ inventory_hostname }}

prometheus_server_jobs:
  - node
#prometheus_server_jobs_extra: |
#  - job_name: ...

prometheus_server_rules:
  prometheus: "{{ prometheus_server_rules_prometheus + ((prometheus_server_alertmanager is defined) | ternary(prometheus_server_rules_prometheus_alertmanager, [])) + prometheus_server_rules_prometheus_extra }}"
  node: "{{ prometheus_server_rules_node + prometheus_server_rules_node_extra }}"
  openwrt: "{{ prometheus_server_rules_openwrt + prometheus_server_rules_node_extra }}"
  nut: "{{ prometheus_server_rules_nut + prometheus_server_rules_nut_extra }}"
  nut/ups: "{{ prometheus_server_rules_nut__ups + prometheus_server_rules_nut__ups_extra }}"
  blackbox: "{{ prometheus_server_rules_blackbox + prometheus_server_rules_blackbox_extra }}"
  blackbox/probe: "{{ prometheus_server_rules_blackbox__probe + prometheus_server_rules_blackbox__probe_extra }}"
  ipmi: "{{ prometheus_server_rules_ipmi + prometheus_server_rules_ipmi_extra }}"
  ipmi/remote: "{{ prometheus_server_rules_ipmi__remote + prometheus_server_rules_ipmi__remote_extra }}"
  ssl: "{{ prometheus_server_rules_ssl + prometheus_server_rules_ssl_extra }}"
  ssl/probe: "{{ prometheus_server_rules_ssl__probe + prometheus_server_rules_ssl__probe_extra }}"

# prometheus_server_alertmanager:
#   url: "127.0.0.1:9093"
#   path_prefix: /
#   basic_auth:
#     username: server
#     password: geheim

prometheus_server_web_listen_address: 127.0.0.1:9090
# prometheus_server_web_route_prefix: /prometheus/
# prometheus_server_web_external_url: https://mon.example.com/prometheus/

# prometheus_server_auth_users:
#   server: changeme
#   admin: secret

# prometheus_server_selfscraping_auth:
#   username: server
#   password: changme