File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -41,8 +41,10 @@ prometheus_web_config:
4141 basic_auth_users : {}
4242
4343# Prometheus customized arguments
44+ # -------------------------------
4445prometheus_enable_target_sharding : false
45- sharding_ignorances : []
46+ # Job names to ignore sharding
47+ prometheus_sharding_ignorances : []
4648
4749# Configuration file options
4850# --------------------------
Original file line number Diff line number Diff line change 9191 source : " {{ prometheus_config_dir }}/prometheus.yml"
9292 modulus : " {{ groups['prometheus'] | length }}"
9393 hash_value : " {{ groups['prometheus'].index(inventory_hostname) }}"
94- ignorances : " {{ sharding_ignorances }}"
94+ ignorances : " {{ prometheus_sharding_ignorances }}"
9595 when : prometheus_enable_target_sharding | bool
9696
9797- name : Find file_sd configurations on prometheus hosts
110110 source : " {{ item.path }}"
111111 modulus : " {{ groups['prometheus'] | length }}"
112112 hash_value : " {{ groups['prometheus'].index(inventory_hostname) }}"
113+ ignorances : " {{ prometheus_sharding_ignorances }}"
113114 loop : " {{ host_file_sd.files }}"
114115 when :
115116 - prometheus_enable_target_sharding | bool
You can’t perform that action at this time.
0 commit comments