summaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-06-13 19:23:46 +0200
committerChristian Pointner <equinox@spreadspace.org>2021-06-20 01:44:16 +0200
commitd0482708def7d7b5165590db30bdca014d187528 (patch)
treeec7ec10550f41dff284825efb0d0eb5e445e6559 /roles
parentprometheus: generate target configs (diff)
add meta dep for prometheus exporter
Diffstat (limited to 'roles')
-rw-r--r--roles/monitoring/prometheus/exporter/defaults/main.yml3
-rw-r--r--roles/monitoring/prometheus/exporter/meta/main.yml7
2 files changed, 10 insertions, 0 deletions
diff --git a/roles/monitoring/prometheus/exporter/defaults/main.yml b/roles/monitoring/prometheus/exporter/defaults/main.yml
new file mode 100644
index 00000000..858c1837
--- /dev/null
+++ b/roles/monitoring/prometheus/exporter/defaults/main.yml
@@ -0,0 +1,3 @@
+---
+prometheus_exporters:
+ - node
diff --git a/roles/monitoring/prometheus/exporter/meta/main.yml b/roles/monitoring/prometheus/exporter/meta/main.yml
new file mode 100644
index 00000000..ddb30f9a
--- /dev/null
+++ b/roles/monitoring/prometheus/exporter/meta/main.yml
@@ -0,0 +1,7 @@
+---
+dependencies:
+ - role: monitoring/prometheus/exporter/base
+ - role: monitoring/prometheus/exporter/node
+ when: "'node' in prometheus_exporters"
+ - role: monitoring/prometheus/exporter/blackbox
+ when: "'blackbox' in prometheus_exporters"