diff options
| author | Colin Wilk <colin.wilk@tum.de> | 2023-05-27 19:57:38 +0200 |
|---|---|---|
| committer | Colin Wilk <colin.wilk@tum.de> | 2023-05-27 19:57:38 +0200 |
| commit | 0b2823d40892ffca4c0c64536c6a821cebaf3ff6 (patch) | |
| tree | ab8300fc9036d628b1393be43faf11a38014ef0b /defaults/main.yml | |
| parent | 86becf489d216cb6de226d544ca128696f41357e (diff) | |
| download | ansible-role-prometheus-target-0b2823d40892ffca4c0c64536c6a821cebaf3ff6.tar.gz ansible-role-prometheus-target-0b2823d40892ffca4c0c64536c6a821cebaf3ff6.zip | |
Switch to single host per exporter configuration
Before you could do multiple hosts per exporter like this:
- id: node_exporter
hosts:
- host1
- host2
This was removed since it simplifies the code quite a bit and you can
still archive the same behavior like this:
- { id: node_exporter, host: host1 }
- { id: node_exporter, host: host2 }
Signed-off-by: Colin Wilk <colin.wilk@tum.de>
Diffstat (limited to 'defaults/main.yml')
| -rw-r--r-- | defaults/main.yml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/defaults/main.yml b/defaults/main.yml index 8c0435b..7bf7715 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -49,7 +49,9 @@ prometheus_target_exporter_defaults: prometheus_target_exporter: [] # - id: node_exporter - # path: asd - # hosts: ['{{ inventory_hostname }}'] + # # 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 |