Skip to content

Commit f547be5

Browse files
committed
add rule
1 parent 7f2a766 commit f547be5

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Diff for: assets/cluster-monitoring-operator/prometheus-rule.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,8 @@ spec:
384384
- expr: sum (max without(service,endpoint,container,pod,job,namespace) (irate(haproxy_server_http_responses_total{exported_namespace=~"openshift-.*"}[5m])))
385385
or absent(__does_not_exist__)*0
386386
record: cluster:usage:openshift:ingress_request_total:irate5m
387+
- expr: sum(ingress_controller_aws_nlb_active) or absent(__does_not_exist__)*0
388+
record: cluster:ingress_controller_aws_nlb_active:sum
387389
- name: openshift-build.rules
388390
rules:
389391
- expr: sum by (strategy) (openshift_build_status_phase_total)

Diff for: jsonnet/rules.libsonnet

+5
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,11 @@ function(params) {
513513
record: 'cluster:usage:openshift:ingress_request_total:irate5m',
514514
// The instantaneous rate of openshift requests per second arriving at the ingress controllers
515515
},
516+
{
517+
expr: 'sum(ingress_controller_aws_nlb_active) or absent(__does_not_exist__)*0',
518+
record: 'cluster:ingress_controller_aws_nlb_active:sum',
519+
// Informs how many NLBs are active in AWS.
520+
},
516521
],
517522
},
518523
{

0 commit comments

Comments
 (0)