diff options
| author | Colin Wilk <colin@wilk.cx> | 2026-08-11 00:54:41 +0200 |
|---|---|---|
| committer | Colin Wilk <colin@wilk.cx> | 2026-08-11 00:54:41 +0200 |
| commit | c267536ecfbcf37e68226ade2ed29c3b1f356a98 (patch) | |
| tree | 0fb9728b0095dd34b873fa6c137b75c60734940d /defaults | |
| parent | c33948c219032977779a7ef6d82c16e84f37b81a (diff) | |
| download | ansible-role-prometheus-target-c267536ecfbcf37e68226ade2ed29c3b1f356a98.tar.gz ansible-role-prometheus-target-c267536ecfbcf37e68226ade2ed29c3b1f356a98.zip | |
Add `state` option for removing exporters
Diffstat (limited to 'defaults')
| -rw-r--r-- | defaults/main.yml | 3 |
1 files changed, 3 insertions, 0 deletions
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 |