Skip to content

Commit 548d2d7

Browse files
morenodopenshift-merge-bot[bot]
authored andcommitted
Enable prometheus admin API to allow us to delete old injected metrics
1 parent 09c1e41 commit 548d2d7

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

ci/playbooks/deploy_watcher_service.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,16 @@
2828
oc wait OpenStackControlPlane controlplane --namespace=openstack
2929
--for=condition=Ready --timeout=10m
3030
31+
- name: Patch prometheuses.monitoring.rhobs metric-storage to enable Admin API
32+
ansible.builtin.command:
33+
cmd: >-
34+
oc patch prometheuses.monitoring.rhobs metric-storage --namespace=openstack --type=merge -p '{"spec":{"enableAdminAPI":true}}'
35+
36+
- name: Wait for prometheuses.monitoring.rhobs metric-storage associated pod to be redeployed
37+
ansible.builtin.command:
38+
cmd: >-
39+
oc wait pod prometheus-metric-storage-0 --for=condition=Ready -n openstack --timeout=10m
40+
3141
# If the watcher-operator installation is already included in the openstack-operator we don't need to install it as
3242
# an standalone operator.
3343
- name: Check if Watcher API resources are available

0 commit comments

Comments
 (0)