Skip to content

Commit df3138a

Browse files
amoralejraukadah
authored andcommitted
Allow to disable telemetry exporters in ci-framework jobs
There are certain cases where we want to disable specific telemetry exporters in ci-framework jobs, i.e. watcher jobs where the required metrics to test watcher features are injected into prometheus directly. This patch is adding a variable cifmw_edpm_telemetry_enabled_exporters which can contain the list of desired exporters in the telemetry enabled deployment. Co-Authored-By: Chandan Kumar <raukadah@gmail.com>
1 parent 3a5e162 commit df3138a

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

hooks/playbooks/fetch_compute_facts.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,15 @@
273273
{{ cifmw_hook_fetch_compute_facts_edpm_cmd | indent( width=8) }}
274274
{% endif %}
275275
276+
{% if cifmw_edpm_telemetry_enabled_exporters is defined and cifmw_edpm_telemetry_enabled_exporters | length > 0 %}
277+
- op: replace
278+
path: /spec/nodeTemplate/ansible/ansibleVars/edpm_telemetry_enabled_exporters
279+
value:
280+
{% for exporter in cifmw_edpm_telemetry_enabled_exporters %}
281+
- "{{ exporter }}"
282+
{% endfor %}
283+
{% endif %}
284+
276285
- name: Ensure we know about the private host keys
277286
ansible.builtin.shell:
278287
cmd: |

0 commit comments

Comments
 (0)