diff --git a/roles/servicetelemetry/tasks/component_alertmanager.yml b/roles/servicetelemetry/tasks/component_alertmanager.yml index 1e555131..e8d21388 100644 --- a/roles/servicetelemetry/tasks/component_alertmanager.yml +++ b/roles/servicetelemetry/tasks/component_alertmanager.yml @@ -46,6 +46,7 @@ name: '{{ ansible_operator_meta.name }}' namespace: '{{ ansible_operator_meta.namespace }}' when: + - "'monitoring.rhobs' in api_groups" - observability_strategy not in ['use_redhat', 'use_hybrid'] # TODO: expand the management of alertmanager receivers and move this functionality to a common location diff --git a/roles/servicetelemetry/tasks/component_prometheus.yml b/roles/servicetelemetry/tasks/component_prometheus.yml index 601a2824..a88d8d9a 100644 --- a/roles/servicetelemetry/tasks/component_prometheus.yml +++ b/roles/servicetelemetry/tasks/component_prometheus.yml @@ -212,6 +212,7 @@ name: '{{ ansible_operator_meta.name }}' namespace: '{{ ansible_operator_meta.namespace }}' when: + - "'monitoring.rhobs' in api_groups" - observability_strategy not in ['use_redhat', 'use_hybrid'] - name: Set default prometheus service template