Rename the alert to NVMeoFSingleGateway.
The original name was confusing because it
accidently might convey that alert would be
triggered if there is a single gateway group.
Though 'NVMeoFSingleGatewayGroup' alert means that
there is single gateway in a group.
Signed-off-by: Vallari Agrawal <vallari.agrawal@ibm.com>
},
},
{
- alert: 'NVMeoFSingleGatewayGroup',
+ alert: 'NVMeoFSingleGateway',
'for': '5m',
expr: 'count(ceph_nvmeof_gateway_info) by(cluster,group) == 1',
labels: { severity: 'warning', type: 'ceph_default' },
labels:
severity: "warning"
type: "ceph_default"
- - alert: "NVMeoFSingleGatewayGroup"
+ - alert: "NVMeoFSingleGateway"
annotations:
description: "Although a single member gateway group is valid, it should only be used for test purposes"
summary: "The gateway group {{ $labels.group }} consists of a single gateway - HA is not possible on cluster {{ $labels.cluster }}"
summary: "Max gateway groups exceeded on cluster mycluster"
description: "You may create many gateway groups, but 4 is the tested limit"
- # NVMeoFSingleGatewayGroup
+ # NVMeoFSingleGateway
- interval: 1m
input_series:
- series: 'ceph_nvmeof_gateway_info{group="group-1",addr="1.1.1.2",cluster="mycluster"}'
value: 1
alert_rule_test:
- eval_time: 5m
- alertname: NVMeoFSingleGatewayGroup
+ alertname: NVMeoFSingleGateway
exp_alerts:
- exp_labels:
group: group-1