Skip to content

Commit

Permalink
Move vSphere prometheus rules to cluster-storage-operator
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jsafrane committed Jan 16, 2024
1 parent 9a4c0fe commit 11db19d
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions assets/cluster-monitoring-operator/prometheus-rule.yaml
Expand Up @@ -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]))
Expand Down

0 comments on commit 11db19d

Please sign in to comment.