From 11db19d8e114453902c97269410c9ce9c044e2e7 Mon Sep 17 00:00:00 2001 From: Jan Safranek Date: Tue, 16 Jan 2024 14:13:22 +0100 Subject: [PATCH] Move vSphere prometheus rules to cluster-storage-operator Move rules that are used to sanitize OCP metric for telemetry to cluster-storage-operator. These rules are used only for storage metrics and should live with storage code. --- .../prometheus-rule.yaml | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/assets/cluster-monitoring-operator/prometheus-rule.yaml b/assets/cluster-monitoring-operator/prometheus-rule.yaml index 100f181f87..fc04fd6968 100644 --- a/assets/cluster-monitoring-operator/prometheus-rule.yaml +++ b/assets/cluster-monitoring-operator/prometheus-rule.yaml @@ -354,20 +354,6 @@ spec: rules: - expr: sum(rate(apiserver_request_total{job="apiserver"}[10m])) BY (code) record: code:apiserver_request_total:rate:sum - - name: openshift-vsphere.rules - rules: - - expr: sum by(version, build)(vsphere_vcenter_info) - record: cluster:vsphere_vcenter_info:sum - - expr: sum by(version)(vsphere_esxi_version_total) - record: cluster:vsphere_esxi_version_total:sum - - expr: sum by(hw_version)(vsphere_node_hw_version_total) - record: cluster:vsphere_node_hw_version_total:sum - - expr: max by(source)(vsphere_topology_tags) - record: cluster:vsphere_topology_tags:max - - expr: max by(scope)(vsphere_infrastructure_failure_domains) - record: cluster:vsphere_infrastructure_failure_domains:max - - expr: max by(status)(vsphere_csi_migration{status=~"|LegacyDeprecatedInTreeDriver|CSIWithMigrationDriver"}) - record: cluster:vsphere_csi_migration:max - name: apiserver-list-watch.rules rules: - expr: sum by(verb) (rate(apiserver_request_total{verb=~"LIST|WATCH",code=~"2.."}[5m]))