aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/defaults/main.yml
blob: cd65f0313374bb4da7d2298f8b191370b0c26057 (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_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