diff options
author | Christian Pointner <equinox@spreadspace.org> | 2023-02-05 22:19:10 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2023-02-05 22:19:10 +0100 |
commit | 3b4c0a0cce803413d8465e0e32714924e8573897 (patch) | |
tree | 1dbbc8861bea09ec7559ac930183783df28fe381 /roles/monitoring/prometheus/exporter/register/templates/blackbox | |
parent | promethues: move target file installation to seperate role (diff) |
prometheus targets: some more refactoring - still not working... :(
Diffstat (limited to 'roles/monitoring/prometheus/exporter/register/templates/blackbox')
-rw-r--r-- | roles/monitoring/prometheus/exporter/register/templates/blackbox/probe.yml.j2 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/monitoring/prometheus/exporter/register/templates/blackbox/probe.yml.j2 b/roles/monitoring/prometheus/exporter/register/templates/blackbox/probe.yml.j2 new file mode 100644 index 00000000..47e6dceb --- /dev/null +++ b/roles/monitoring/prometheus/exporter/register/templates/blackbox/probe.yml.j2 @@ -0,0 +1,5 @@ +- targets: [ '{{ (target.exporter_hostname == prometheus_server) | ternary('127.0.0.1:9999', hostvars[target.exporter_hostname].prometheus_scrape_endpoint) }}' ] + labels: + instance: '{{ target.instance }}' + __param_target: '{{ target.config.target }}' + __param_module: '{{ target.config.module }}' |