summaryrefslogtreecommitdiffstats
path: root/monitoring
diff options
context:
space:
mode:
authorVallari Agrawal <vallari.agrawal@ibm.com>2024-11-18 06:50:00 +0100
committerVallari Agrawal <vallari.agrawal@ibm.com>2024-11-19 09:04:01 +0100
commit614e14654dbdac474943b9c1f9e74afab131c94a (patch)
treefda2075585a8f44d320c90242a4ea1e023f34f78 /monitoring
parentMerge pull request #60655 from xxhdx1985126/wip-seastore-move-out-root-meta (diff)
downloadceph-614e14654dbdac474943b9c1f9e74afab131c94a.tar.xz
ceph-614e14654dbdac474943b9c1f9e74afab131c94a.zip
monitoring: Add alert NVMeoFTooManyNamespaces
NVMeoFTooManyNamespaces helps to alert user if total number of namespaces across subsystems are more than 1024. Change NVMeoFTooManySubsystems limit to 128 from 16. Fixes: https://github.com/ceph/ceph-nvmeof/issues/948 Signed-off-by: Vallari Agrawal <vallari.agrawal@ibm.com>
Diffstat (limited to 'monitoring')
-rw-r--r--monitoring/ceph-mixin/config.libsonnet3
-rw-r--r--monitoring/ceph-mixin/prometheus_alerts.libsonnet12
-rw-r--r--monitoring/ceph-mixin/prometheus_alerts.yml11
-rw-r--r--monitoring/ceph-mixin/tests_alerts/test_alerts.yml270
4 files changed, 291 insertions, 5 deletions
diff --git a/monitoring/ceph-mixin/config.libsonnet b/monitoring/ceph-mixin/config.libsonnet
index c0af859e459..a15b88422fc 100644
--- a/monitoring/ceph-mixin/config.libsonnet
+++ b/monitoring/ceph-mixin/config.libsonnet
@@ -12,7 +12,8 @@
NVMeoFMaxGatewaysPerGroup: 4,
NVMeoFMaxGatewaysPerCluster: 4,
NVMeoFHighGatewayCPU: 80,
- NVMeoFMaxSubsystemsPerGateway: 16,
+ NVMeoFMaxSubsystemsPerGateway: 128,
+ NVMeoFMaxNamespaces: 1024,
NVMeoFHighClientCount: 32,
NVMeoFHighHostCPU: 80,
//
diff --git a/monitoring/ceph-mixin/prometheus_alerts.libsonnet b/monitoring/ceph-mixin/prometheus_alerts.libsonnet
index 30b6b07d463..143e65f20e7 100644
--- a/monitoring/ceph-mixin/prometheus_alerts.libsonnet
+++ b/monitoring/ceph-mixin/prometheus_alerts.libsonnet
@@ -908,7 +908,7 @@
{
alert: 'NVMeoFTooManySubsystems',
'for': '1m',
- expr: 'count by(gateway_host, cluster) (label_replace(ceph_nvmeof_subsystem_metadata,"gateway_host","$1","instance","(.*):.*")) > %.2f' % [$._config.NVMeoFMaxSubsystemsPerGateway],
+ expr: 'count by(gateway_host, cluster) (label_replace(ceph_nvmeof_subsystem_metadata,"gateway_host","$1","instance","(.*?)(?::.*)?")) > %.2f' % [$._config.NVMeoFMaxSubsystemsPerGateway],
labels: { severity: 'warning', type: 'ceph_default' },
annotations: {
summary: 'The number of subsystems defined to the gateway exceeds supported values%(cluster)s' % $.MultiClusterSummary(),
@@ -916,6 +916,16 @@
},
},
{
+ alert: 'NVMeoFTooManyNamespaces',
+ 'for': '1m',
+ expr: 'sum by(gateway_host, cluster) (label_replace(ceph_nvmeof_subsystem_namespace_count,"gateway_host","$1","instance","(.*?)(?::.*)?")) > %.2f' % [$._config.NVMeoFMaxNamespaces],
+ labels: { severity: 'warning', type: 'ceph_default' },
+ annotations: {
+ summary: 'The number of namespaces defined to the gateway exceeds supported values%(cluster)s' % $.MultiClusterSummary(),
+ description: 'Although you may continue to create namespaces in {{ $labels.gateway_host }}, the configuration may not be supported',
+ },
+ },
+ {
alert: 'NVMeoFVersionMismatch',
'for': '1h',
expr: 'count(count(ceph_nvmeof_gateway_info) by (cluster, version)) by (cluster) > 1',
diff --git a/monitoring/ceph-mixin/prometheus_alerts.yml b/monitoring/ceph-mixin/prometheus_alerts.yml
index 805ecb1188a..3eb8a8db4fa 100644
--- a/monitoring/ceph-mixin/prometheus_alerts.yml
+++ b/monitoring/ceph-mixin/prometheus_alerts.yml
@@ -814,7 +814,16 @@ groups:
annotations:
description: "Although you may continue to create subsystems in {{ $labels.gateway_host }}, the configuration may not be supported"
summary: "The number of subsystems defined to the gateway exceeds supported values on cluster {{ $labels.cluster }}"
- expr: "count by(gateway_host, cluster) (label_replace(ceph_nvmeof_subsystem_metadata,\"gateway_host\",\"$1\",\"instance\",\"(.*):.*\")) > 16.00"
+ expr: "count by(gateway_host, cluster) (label_replace(ceph_nvmeof_subsystem_metadata,\"gateway_host\",\"$1\",\"instance\",\"(.*?)(?::.*)?\")) > 128.00"
+ for: "1m"
+ labels:
+ severity: "warning"
+ type: "ceph_default"
+ - alert: "NVMeoFTooManyNamespaces"
+ annotations:
+ description: "Although you may continue to create namespaces in {{ $labels.gateway_host }}, the configuration may not be supported"
+ summary: "The number of namespaces defined to the gateway exceeds supported values on cluster {{ $labels.cluster }}"
+ expr: "sum by(gateway_host, cluster) (label_replace(ceph_nvmeof_subsystem_namespace_count,\"gateway_host\",\"$1\",\"instance\",\"(.*?)(?::.*)?\")) > 1024.00"
for: "1m"
labels:
severity: "warning"
diff --git a/monitoring/ceph-mixin/tests_alerts/test_alerts.yml b/monitoring/ceph-mixin/tests_alerts/test_alerts.yml
index 6bcaa53b851..a4e63bbcf73 100644
--- a/monitoring/ceph-mixin/tests_alerts/test_alerts.yml
+++ b/monitoring/ceph-mixin/tests_alerts/test_alerts.yml
@@ -2453,12 +2453,236 @@ tests:
values: '1+0x10'
- series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn17",cluster="mycluster"}'
values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn18",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn19",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn20",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn21",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn22",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn23",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn24",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn25",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn26",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn27",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn28",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn29",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn30",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn31",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn32",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn33",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn34",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn35",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn36",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn37",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn38",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn39",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn40",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn41",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn42",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn43",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn44",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn45",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn46",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn47",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn48",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn49",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn50",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn51",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn52",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn53",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn54",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn55",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn56",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn57",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn58",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn59",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn60",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn61",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn62",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn63",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn64",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn65",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn66",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn67",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn68",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn69",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn70",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn71",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn72",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn73",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn74",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn75",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn76",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn77",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn78",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn79",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn80",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn81",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn82",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn83",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn84",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn85",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn86",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn87",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn88",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn89",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn90",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn91",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn92",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn93",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn94",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn95",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn96",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn97",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn98",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn99",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn100",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn101",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn102",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn103",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn104",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn105",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn106",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn107",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn108",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn109",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn110",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn111",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn112",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn113",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn114",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn115",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn116",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn117",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn118",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn119",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn120",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn121",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn122",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn123",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn124",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn125",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn126",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn127",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn128",cluster="mycluster"}'
+ values: '1+0x10'
+ - series: 'ceph_nvmeof_subsystem_metadata{instance="node-1:10008",nqn="nqn129",cluster="mycluster"}'
+ values: '1+0x10'
promql_expr_test:
- - expr: count by(gateway_host, cluster) (label_replace(ceph_nvmeof_subsystem_metadata,"gateway_host","$1","instance","(.*):.*")) > 16
+ - expr: count by(gateway_host, cluster) (label_replace(ceph_nvmeof_subsystem_metadata,"gateway_host","$1","instance","(.*):.*")) > 128
eval_time: 1m
exp_samples:
- labels: '{gateway_host="node-1", cluster="mycluster"}'
- value: 17
+ value: 129
alert_rule_test:
- eval_time: 5m
alertname: NVMeoFTooManySubsystems
@@ -2472,6 +2696,48 @@ tests:
summary: "The number of subsystems defined to the gateway exceeds supported values on cluster mycluster"
description: "Although you may continue to create subsystems in node-1, the configuration may not be supported"
+# NVMeoFTooManyNamespaces
+ - interval: 1m
+ input_series:
+ - series: 'ceph_nvmeof_subsystem_namespace_count{instance="node-1:10008",nqn="nqn1",cluster="mycluster"}'
+ values: '200+0x10'
+ - series: 'ceph_nvmeof_subsystem_namespace_count{instance="node-1:10008",nqn="nqn2",cluster="mycluster"}'
+ values: '200+0x10'
+ - series: 'ceph_nvmeof_subsystem_namespace_count{instance="node-1:10008",nqn="nqn3",cluster="mycluster"}'
+ values: '200+0x10'
+ - series: 'ceph_nvmeof_subsystem_namespace_count{instance="node-1:10008",nqn="nqn4",cluster="mycluster"}'
+ values: '200+0x10'
+ - series: 'ceph_nvmeof_subsystem_namespace_count{instance="node-1:10008",nqn="nqn5",cluster="mycluster"}'
+ values: '200+0x10'
+ - series: 'ceph_nvmeof_subsystem_namespace_count{instance="node-1:10008",nqn="nqn6",cluster="mycluster"}'
+ values: '200+0x10'
+ - series: 'ceph_nvmeof_subsystem_namespace_count{instance="node-1:10008",nqn="nqn7",cluster="mycluster"}'
+ values: '200+0x10'
+ - series: 'ceph_nvmeof_subsystem_namespace_count{instance="node-1:10008",nqn="nqn8",cluster="mycluster"}'
+ values: '200+0x10'
+ - series: 'ceph_nvmeof_subsystem_namespace_count{instance="node-1:10008",nqn="nqn9",cluster="mycluster"}'
+ values: '200+0x10'
+ - series: 'ceph_nvmeof_subsystem_namespace_count{instance="node-1:10008",nqn="nqn10",cluster="mycluster"}'
+ values: '200+0x10'
+ promql_expr_test:
+ - expr: sum by(gateway_host, cluster) (label_replace(ceph_nvmeof_subsystem_namespace_count,"gateway_host","$1","instance","(.*):.*")) > 1024
+ eval_time: 1m
+ exp_samples:
+ - labels: '{gateway_host="node-1", cluster="mycluster"}'
+ value: 2000
+ alert_rule_test:
+ - eval_time: 5m
+ alertname: NVMeoFTooManyNamespaces
+ exp_alerts:
+ - exp_labels:
+ gateway_host: node-1
+ severity: warning
+ cluster: mycluster
+ type: ceph_default
+ exp_annotations:
+ summary: "The number of namespaces defined to the gateway exceeds supported values on cluster mycluster"
+ description: "Although you may continue to create namespaces in node-1, the configuration may not be supported"
+
# NVMeoFVersionMismatch
- interval: 1m
input_series: