File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
monitoring/ceph-mixin/tests_alerts Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -2450,6 +2450,38 @@ tests:
24502450 summary : " Max gateways within a gateway group (group-1) exceeded on cluster mycluster"
24512451 description : " You may create many gateways in a gateway group, but 8 is the tested limit"
24522452
2453+
2454+ # NVMeoFMaxGatewayGroups
2455+ - interval : 1m
2456+ input_series :
2457+ - series : ' ceph_nvmeof_gateway_info{group="group-1",addr="1.1.1.1",cluster="mycluster"}'
2458+ values : ' 1+0x20'
2459+ - series : ' ceph_nvmeof_gateway_info{group="group-2",addr="1.1.1.2",cluster="mycluster"}'
2460+ values : ' 1+0x20'
2461+ - series : ' ceph_nvmeof_gateway_info{group="group-3",addr="1.1.1.3",cluster="mycluster"}'
2462+ values : ' 1+0x20'
2463+ - series : ' ceph_nvmeof_gateway_info{group="group-4",addr="1.1.1.9",cluster="mycluster"}'
2464+ values : ' 1+0x20'
2465+ - series : ' ceph_nvmeof_gateway_info{group="group-5",addr="1.1.1.12",cluster="mycluster"}'
2466+ values : ' 1+0x20'
2467+ promql_expr_test :
2468+ - expr : count(count by (group, cluster) (ceph_nvmeof_gateway_info)) by (cluster) > 4.00
2469+ eval_time : 1m
2470+ exp_samples :
2471+ - labels : ' {cluster="mycluster"}'
2472+ value : 5
2473+ alert_rule_test :
2474+ - eval_time : 5m
2475+ alertname : NVMeoFMaxGatewayGroups
2476+ exp_alerts :
2477+ - exp_labels :
2478+ severity : warning
2479+ cluster : mycluster
2480+ type : ceph_default
2481+ exp_annotations :
2482+ summary : " Max gateway groups exceeded on cluster mycluster"
2483+ description : " You may create many gateway groups, but 4 is the tested limit"
2484+
24532485 # NVMeoFSingleGatewayGroup
24542486 - interval : 1m
24552487 input_series :
You can’t perform that action at this time.
0 commit comments