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

# prometheus_server_version:

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

prometheus_server_scrape_interval: "15s"
prometheus_server_evaluation_interval: "15s"

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_openwrt_extra }}"
  chrony: "{{ prometheus_server_rules_chrony + prometheus_server_rules_chrony_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 }}"
  smokeping: "{{ prometheus_server_rules_smokeping + prometheus_server_rules_smokeping_extra }}"
  bind: "{{ prometheus_server_rules_bind + prometheus_server_rules_bind_extra }}"
  snmp: "{{ prometheus_server_rules_snmp + prometheus_server_rules_snmp_extra }}"
  snmp/probe: "{{ prometheus_server_rules_snmp__probe + prometheus_server_rules_snmp__probe_extra }}"
  standalone-kubelet: "{{ prometheus_server_rules_standalone_kubelet + prometheus_server_rules_standalone_kubelet_extra }}"
  modbus: "{{ prometheus_server_rules_modbus + prometheus_server_rules_modbus_extra }}"
  modbus/probe: "{{ prometheus_server_rules_modbus__probe + prometheus_server_rules_modbus__probe_extra }}"
  nftables: "{{ prometheus_server_rules_nftables + prometheus_server_rules_nftables_extra }}"
  whawty-nginx-sso: "{{ prometheus_server_rules_whawty_nginx_sso + prometheus_server_rules_whawty_nginx_sso_extra }}"
  mosquitto: "{{ prometheus_server_rules_mosquitto + prometheus_server_rules_mosquitto_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

# prometheus_server_federation:
#   somehost:
#     scheme: http
#     url: 192.2.0.1:9000
#     path_prefix: /prometheus
#     basic_auth:
#       username: federate
#       password: secret
#     jobs:
#     - node
#     - blackbox

# prometheus_server_secret_files:
#   user: secret