mirror of
https://github.com/ceph/ceph
synced 2025-04-18 21:36:09 +00:00
monitoring: fix NVMeoFSubsystemNamespaceLimit
Alert is not triggered as expected, change the query to fix that. BZ: https://bugzilla.redhat.com/show_bug.cgi?id=2282348 Signed-off-by: Vallari Agrawal <vallari.agrawal@ibm.com>
This commit is contained in:
parent
9fa163df8f
commit
4a7866aecc
@ -848,7 +848,7 @@
|
||||
{
|
||||
alert: 'NVMeoFSubsystemNamespaceLimit',
|
||||
'for': '1m',
|
||||
expr: '(count by(nqn, cluster) (ceph_nvmeof_subsystem_namespace_metadata)) >= ceph_nvmeof_subsystem_namespace_limit',
|
||||
expr: '(count by(nqn, cluster, instance) (ceph_nvmeof_subsystem_namespace_metadata)) >= on(nqn, instance) group_right(cluster) ceph_nvmeof_subsystem_namespace_limit',
|
||||
labels: { severity: 'warning', type: 'ceph_default' },
|
||||
annotations: {
|
||||
summary: '{{ $labels.nqn }} subsystem has reached its maximum number of namespaces%(cluster)s' % $.MultiClusterSummary(),
|
||||
|
@ -760,7 +760,7 @@ groups:
|
||||
annotations:
|
||||
description: "Subsystems have a max namespace limit defined at creation time. This alert means that no more namespaces can be added to {{ $labels.nqn }}"
|
||||
summary: "{{ $labels.nqn }} subsystem has reached its maximum number of namespaces on cluster {{ $labels.cluster }}"
|
||||
expr: "(count by(nqn, cluster) (ceph_nvmeof_subsystem_namespace_metadata)) >= ceph_nvmeof_subsystem_namespace_limit"
|
||||
expr: "(count by(nqn, cluster, instance) (ceph_nvmeof_subsystem_namespace_metadata)) >= on(nqn, instance) group_right(cluster) ceph_nvmeof_subsystem_namespace_limit"
|
||||
for: "1m"
|
||||
labels:
|
||||
severity: "warning"
|
||||
|
Loading…
Reference in New Issue
Block a user