blob: 7bf77150d0f266b8d884955ac07b28b830cef767 (
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
|
---
prometheus_target_host: prometheus # FIXME: Non default argument_spec
prometheus_target_strategy: lineinfile
################################################################################
# handler configuration
################################################################################
prometheus_target_handler_command_enabled: false
prometheus_target_handler_command_become: true
# prometheus_target_handler_command:
# argv:
# chdir:
# cmd:
# creates:
# free_form:
# removes:
# stdin:
# stdin_add_newline:
prometheus_target_handler_shell_enabled: false
prometheus_target_handler_shell_become: true
# prometheus_target_handler_shell:
# chdir:
# cmd:
# creates:
# executable:
# free_form:
# removes:
# stdin:
# stdin_add_newline:
################################################################################
# lineinfile strategy configuration
################################################################################
prometheus_target_strategy_lineinfile_prefix: ' - '
prometheus_target_strategy_lineinfile_suffix: ''
################################################################################
# Exporter configuration
################################################################################
prometheus_target_exporter_defaults:
node_exporter:
path: /opt/prometheus/targets.yml
host: '{{ inventory_hostname }}'
prometheus_target_exporter: []
# - id: node_exporter
# # overwrites prometheus_target_exporter_defaults.node_exporter.path
# path: /path/to/targets/file/on/prometheus/host
# # overwrites: prometheus_target_exporter_defaults.node_exporter.host
# host: '{{ inventory_hostname }}:9100'
default_hostname: '{{ inventory_hostname }}' # TODO: Implement
|