aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/defaults/main.yml
blob: 8c0435b18e06e070f7b98d67e60a3467f66a2d95 (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
---
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
  #   path: asd
  #   hosts: ['{{ inventory_hostname }}']

default_hostname: '{{ inventory_hostname }}' # TODO: Implement