|
928 | 928 | { |
929 | 929 | alert: 'NVMeoFTooManySubsystems', |
930 | 930 | 'for': '1m', |
931 | | - expr: 'count by(gateway_host, cluster) (label_replace(ceph_nvmeof_subsystem_metadata,"gateway_host","$1","instance","(.*?)(?::.*)?")) > %.2f' % [$._config.NVMeoFMaxSubsystemsPerGateway], |
| 931 | + expr: 'count by(gateway_host, cluster) (label_replace(ceph_nvmeof_subsystem_metadata,"gateway_host","$1","instance","(.*?)(?::.*)?")) >= %.2f' % [$._config.NVMeoFMaxSubsystemsPerGateway], |
932 | 932 | labels: { severity: 'warning', type: 'ceph_default' }, |
933 | 933 | annotations: { |
934 | | - summary: 'The number of subsystems defined to the gateway exceeds supported values%(cluster)s' % $.MultiClusterSummary(), |
935 | | - description: 'Although you may continue to create subsystems in {{ $labels.gateway_host }}, the configuration may not be supported', |
| 934 | + summary: 'The number of subsystems defined to the NVMeoF gateway reached or exceeded the supported values%(cluster)s' % $.MultiClusterSummary(), |
| 935 | + description: 'NVMeoF gateway {{ $labels.gateway_host }} has reached or exceeded the supported maximum of %(NVMeoFMaxSubsystemsPerGateway)d subsystems. Current count: {{ $value }}.' % $._config, |
936 | 936 | }, |
937 | 937 | }, |
938 | 938 | { |
939 | 939 | alert: 'NVMeoFTooManyNamespaces', |
940 | 940 | 'for': '1m', |
941 | | - expr: 'sum by(gateway_host, cluster) (label_replace(ceph_nvmeof_subsystem_namespace_count,"gateway_host","$1","instance","(.*?)(?::.*)?")) > %.2f' % [$._config.NVMeoFMaxNamespaces], |
| 941 | + expr: 'sum by(gateway_host, cluster) (label_replace(ceph_nvmeof_subsystem_namespace_count,"gateway_host","$1","instance","(.*?)(?::.*)?")) >= %.2f' % [$._config.NVMeoFMaxNamespaces], |
942 | 942 | labels: { severity: 'warning', type: 'ceph_default' }, |
943 | 943 | annotations: { |
944 | | - summary: 'The number of namespaces defined to the gateway exceeds supported values%(cluster)s' % $.MultiClusterSummary(), |
945 | | - description: 'Although you may continue to create namespaces in {{ $labels.gateway_host }}, the configuration may not be supported', |
| 944 | + summary: 'The number of namespaces defined to the NVMeoF gateway reached or exceeded supported values%(cluster)s' % $.MultiClusterSummary(), |
| 945 | + description: 'NVMeoF gateway {{ $labels.gateway_host }} has reached or exceeded the supported maximum of %(NVMeoFMaxNamespaces)d namespaces. Current count: {{ $value }}.' % $._config, |
946 | 946 | }, |
947 | 947 | }, |
948 | 948 | { |
|
0 commit comments