summaryrefslogtreecommitdiff
path: root/roles/monitoring/prometheus/exporter/node/defaults/main.yml
blob: a3a1baa9eac185830ba81c25f95f78081cc8bcee (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
---
# prometheus_exporter_node_version:

_prometheus_exporter_node_time_collector_map_:
  "": timex
  systemd-timesyncd: timex
  chrony: timex
  openntpd: ntp

prometheus_exporter_node_timesync_collector: "{{ _prometheus_exporter_node_time_collector_map_[ntp_variant | default('')] }}"

prometheus_exporter_node_disable_collectors: []
prometheus_exporter_node_extra_collectors:
  - "{{ prometheus_exporter_node_timesync_collector }}"
  - systemd

prometheus_exporter_node_textfile_collector_scripts:
  - deleted-libraries
#  - smartmon
#  - chrony
#  - sensors

# prometheus_exporter_node_textfile_collector__sensors:
#   i2c:
#   - number: 1
#     devices:
#     - name: blub
#       address: 0x5c
#       type: am2315
#     - address: 0x18
#       type: ds2482
#   - name: "10000900.i2c"
#     devices:
#     - address: 0x70
#       type: pca9548
#       channels:
#       - number: 0
#         devices:
#         - name: foo
#           address: 0x76
#           type: bme280
#       - number: 1
#         devices:
#         - name: bar
#           address: 0x77
#           type: bmp280
#   - name_regex: "^i2c%-tiny%-usb at bus 001 device %d+$"  ## this uses lua pattern maching
#     devices:
#     - address: 0x77
#       type: bmp280
#   w1:
#   - name: temp1
#     address: 28-987654321098
#   - name: temp2
#     address: 28-012345678901
#   gpio:
#   - name: everything-is-fine-and-dandy
#     number: 0
#   - name: something-went-horribly-wrong
#     number: 1