diff options
author | Christian Pointner <equinox@spreadspace.org> | 2023-02-04 00:41:12 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2023-02-04 00:41:34 +0100 |
commit | 5aafc31ce200e0a3a27245410291cf76dc412a75 (patch) | |
tree | a14a8ace8aa99666e17f1235646fb244133f5bb1 /roles/monitoring/prometheus/server/templates | |
parent | add openwrt testvm to prometheus test-zone (diff) |
promethues: move target file installation to seperate role
Diffstat (limited to 'roles/monitoring/prometheus/server/templates')
6 files changed, 0 insertions, 40 deletions
diff --git a/roles/monitoring/prometheus/server/templates/targets/blackbox/probe.yml.j2 b/roles/monitoring/prometheus/server/templates/targets/blackbox/probe.yml.j2 deleted file mode 100644 index 47e6dceb..00000000 --- a/roles/monitoring/prometheus/server/templates/targets/blackbox/probe.yml.j2 +++ /dev/null @@ -1,5 +0,0 @@ -- 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 }}' diff --git a/roles/monitoring/prometheus/server/templates/targets/generic.yml.j2 b/roles/monitoring/prometheus/server/templates/targets/generic.yml.j2 deleted file mode 100644 index 341cb45a..00000000 --- a/roles/monitoring/prometheus/server/templates/targets/generic.yml.j2 +++ /dev/null @@ -1,3 +0,0 @@ -- targets: [ '{{ (target.instance == prometheus_server) | ternary('127.0.0.1:9999', hostvars[target.instance].prometheus_scrape_endpoint) }}' ] - labels: - instance: '{{ target.instance }}' diff --git a/roles/monitoring/prometheus/server/templates/targets/ipmi/remote.yml.j2 b/roles/monitoring/prometheus/server/templates/targets/ipmi/remote.yml.j2 deleted file mode 100644 index 47e6dceb..00000000 --- a/roles/monitoring/prometheus/server/templates/targets/ipmi/remote.yml.j2 +++ /dev/null @@ -1,5 +0,0 @@ -- 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 }}' diff --git a/roles/monitoring/prometheus/server/templates/targets/nut/ups.yml.j2 b/roles/monitoring/prometheus/server/templates/targets/nut/ups.yml.j2 deleted file mode 100644 index a25cdfe5..00000000 --- a/roles/monitoring/prometheus/server/templates/targets/nut/ups.yml.j2 +++ /dev/null @@ -1,17 +0,0 @@ -- targets: [ '{{ (target.exporter_hostname == prometheus_server) | ternary('127.0.0.1:9999', hostvars[target.exporter_hostname].prometheus_scrape_endpoint) }}' ] - labels: - instance: '{{ target.instance }}' - __param_ups: '{{ target.config.ups }}' - __param_server: '{{ target.config.server | default('127.0.0.1') }}' -{% if 'username' in target.config %} - __param_username: '{{ target.config.username }}' -{% endif %} -{% if 'password' in target.config %} - __param_password: '{{ target.config.password }}' -{% endif %} -{% if 'variables' in target.config %} - __param_variables: '{{ target.config.variables }}' -{% endif %} -{% if 'statuses' in target.config %} - __param_statuses: '{{ target.config.statuses }}' -{% endif %} diff --git a/roles/monitoring/prometheus/server/templates/targets/snmp/probe.yml.j2 b/roles/monitoring/prometheus/server/templates/targets/snmp/probe.yml.j2 deleted file mode 100644 index 47e6dceb..00000000 --- a/roles/monitoring/prometheus/server/templates/targets/snmp/probe.yml.j2 +++ /dev/null @@ -1,5 +0,0 @@ -- 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 }}' diff --git a/roles/monitoring/prometheus/server/templates/targets/ssl/probe.yml.j2 b/roles/monitoring/prometheus/server/templates/targets/ssl/probe.yml.j2 deleted file mode 100644 index 47e6dceb..00000000 --- a/roles/monitoring/prometheus/server/templates/targets/ssl/probe.yml.j2 +++ /dev/null @@ -1,5 +0,0 @@ -- 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 }}' |