From c267536ecfbcf37e68226ade2ed29c3b1f356a98 Mon Sep 17 00:00:00 2001 From: Colin Wilk Date: Tue, 11 Aug 2026 00:54:41 +0200 Subject: Add `state` option for removing exporters --- defaults/main.yml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'defaults/main.yml') diff --git a/defaults/main.yml b/defaults/main.yml index 2b62d46..f253626 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -129,12 +129,14 @@ prometheus_target_exporter_defaults: {} # labels: # Labels to match when using yaml strategy # severity: warning # job: external + # state: present # Set to absent to remove this target # blackbox_exporter: # path: /opt/targets/blackbox.yml # host: "https://{{ hostvars[inventory_hostname].ansible_host }}" # path_prefix: "" # labels: # severity: critical + # state: present # This is where you specify the exporters that should be deployed to prometheus. # You should configure this on a per play basis. If you wish to configure @@ -150,6 +152,7 @@ prometheus_target_exporter: [] # labels: # severity: warning # job: external + # state: present # Set to absent to remove this target # This is a list of exporters that will be appended to the # prometheus_target_exporter variable. duplicate exporters in -- cgit v1.2.3