Skip to content

Commit

Permalink
Merge pull request #2171 from simonpasquier/remove-e2e-entries-from-p…
Browse files Browse the repository at this point in the history
…v-plugins-metric

MON-3533: Update cluster:kube_persistentvolume_plugin_type_counts:sum
  • Loading branch information
openshift-merge-bot[bot] committed Nov 30, 2023
2 parents 84be118 + 782d11f commit e39355c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/cluster-monitoring-operator/prometheus-rule.yaml
Expand Up @@ -210,7 +210,7 @@ spec:
record: node_role_os_version_machine:cpu_capacity_sockets:sum
- expr: max(alertmanager_integrations{namespace="openshift-monitoring"})
record: cluster:alertmanager_integrations:max
- expr: sum by(plugin_name, volume_mode)(pv_collector_total_pv_count)
- expr: sum by(plugin_name, volume_mode)(pv_collector_total_pv_count{volume_plugin!~".*-e2e-.*"})
record: cluster:kube_persistentvolume_plugin_type_counts:sum
- expr: |
sum(
Expand Down
2 changes: 1 addition & 1 deletion jsonnet/rules.libsonnet
Expand Up @@ -323,7 +323,7 @@ function(params) {
record: 'cluster:alertmanager_integrations:max',
},
{
expr: 'sum by(plugin_name, volume_mode)(pv_collector_total_pv_count)',
expr: 'sum by(plugin_name, volume_mode)(pv_collector_total_pv_count{volume_plugin!~".*-e2e-.*"})',
record: 'cluster:kube_persistentvolume_plugin_type_counts:sum',
},
{
Expand Down

0 comments on commit e39355c

Please sign in to comment.