Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Shipkov <[email protected]>
  • Loading branch information
grem-li committed Nov 21, 2024
1 parent ec73caa commit 7fb2aab
Showing 1 changed file with 86 additions and 86 deletions.
172 changes: 86 additions & 86 deletions monitoring/prometheus-rules/replicated-pv-with-incorrect-settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,94 +38,94 @@
Persistent volumes in the cluster has incorrect quorum-minimum-redundancy setting.
Please, contact tech support for assistance.
# - alert: ReplicatedPVIncorrectReplicasCountFatalS3
# expr: count(kube_persistentvolume_labels{label_storage_deckhouse_io_pv_not_enough_replicas="fatal"}) > 0
# for: 15m
# labels:
# severity_level: "3"
# tier: cluster
# annotations:
# plk_markup_format: "markdown"
# plk_protocol_version: "1"
# plk_create_group_if_not_exists__d8_drbd_device_health: "ReplicatedPVSettingsCheck,tier=~tier,prometheus=deckhouse,kubernetes=~kubernetes"
# plk_grouped_by__d8_drbd_device_health: "ReplicatedPVSettingsCheck,tier=~tier,prometheus=deckhouse,kubernetes=~kubernetes"
# summary: Replicated PVs has not enough replicas
# description: |
# Persistent volumes in the cluster has less then 2 replicas (set of UpToDate resources)
##
## You can get minimal limit for StorageClass with command `kubectl get sc -o yaml | grep -E "(\sname|placementCount)"`
## And view all Resource States with `linstor r l`
# - alert: ReplicatedPVIncorrectReplicasCountErrorS3
# expr: count(kube_persistentvolume_labels{label_storage_deckhouse_io_pv_not_enough_replicas="error", label_storage_deckhouse_io_pv_not_enough_replicas="fatal"}) > 0
# for: 30m
# labels:
# severity_level: "3"
# tier: cluster
# annotations:
# plk_markup_format: "markdown"
# plk_protocol_version: "1"
# plk_create_group_if_not_exists__d8_drbd_device_health: "ReplicatedPVSettingsCheck,tier=~tier,prometheus=deckhouse,kubernetes=~kubernetes"
# plk_grouped_by__d8_drbd_device_health: "ReplicatedPVSettingsCheck,tier=~tier,prometheus=deckhouse,kubernetes=~kubernetes"
# summary: Replicated PVs has not enough replicas
# description: |
# Persistent volumes in the cluster has not enough replicas for quorum for 30min (set of UpToDate resources)
##
## You can get minimal limit for StorageClass with command `kubectl get sc -o yaml | grep -E "(\sname|placementCount)"`
## And view all Resource States with `linstor r l`
# - alert: ReplicatedPVIncorrectReplicasCountWarningS3
# expr: count(kube_persistentvolume_labels{label_storage_deckhouse_io_pv_not_enough_replicas="warning", label_storage_deckhouse_io_pv_not_enough_replicas="error", label_storage_deckhouse_io_pv_not_enough_replicas="fatal"}) > 0
# for: 24h
# labels:
# severity_level: "3"
# tier: cluster
# annotations:
# plk_markup_format: "markdown"
# plk_protocol_version: "1"
# plk_create_group_if_not_exists__d8_drbd_device_health: "ReplicatedPVSettingsCheck,tier=~tier,prometheus=deckhouse,kubernetes=~kubernetes"
# plk_grouped_by__d8_drbd_device_health: "ReplicatedPVSettingsCheck,tier=~tier,prometheus=deckhouse,kubernetes=~kubernetes"
# summary: Replicated PVs has not enough replicas
# description: |
# Persistent volumes in the cluster has not enough replicas for long time (set of UpToDate resources less than minimal count)
##
## You can get minimal limit for StorageClass with command `kubectl get sc -o yaml | grep -E "(\sname|placementCount)"`
## And view all Resource States with `linstor r l`
# - alert: ReplicatedPVIncorrectReplicasCountErrorS4
# expr: count(kube_persistentvolume_labels{label_storage_deckhouse_io_pv_not_enough_replicas="error", label_storage_deckhouse_io_pv_not_enough_replicas="fatal"}) > 0
# for: 15m
# labels:
# severity_level: "4"
# tier: cluster
# annotations:
# plk_markup_format: "markdown"
# plk_protocol_version: "1"
# plk_create_group_if_not_exists__d8_drbd_device_health: "ReplicatedPVSettingsCheck,tier=~tier,prometheus=deckhouse,kubernetes=~kubernetes"
# plk_grouped_by__d8_drbd_device_health: "ReplicatedPVSettingsCheck,tier=~tier,prometheus=deckhouse,kubernetes=~kubernetes"
# summary: Replicated PVs has not enough replicas
# description: |
# Persistent volumes in the cluster has not enough replicas for quorum for 15min (set of UpToDate resources)
##
## You can get minimal limit for StorageClass with command `kubectl get sc -o yaml | grep -E "(\sname|placementCount)"`
## And view all Resource States with `linstor r l`
# - alert: ReplicatedPVIncorrectReplicasCountWarningS4
# expr: count(kube_persistentvolume_labels{label_storage_deckhouse_io_pv_not_enough_replicas="warning", label_storage_deckhouse_io_pv_not_enough_replicas="error", label_storage_deckhouse_io_pv_not_enough_replicas="fatal"}) > 0
# for: 30m
# labels:
# severity_level: "4"
# tier: cluster
# annotations:
# plk_markup_format: "markdown"
# plk_protocol_version: "1"
# plk_create_group_if_not_exists__d8_drbd_device_health: "ReplicatedPVSettingsCheck,tier=~tier,prometheus=deckhouse,kubernetes=~kubernetes"
# plk_grouped_by__d8_drbd_device_health: "ReplicatedPVSettingsCheck,tier=~tier,prometheus=deckhouse,kubernetes=~kubernetes"
# summary: Replicated PVs has not enough replicas
# description: |
# Persistent volumes in the cluster has not enough replicas for 30min (set of UpToDate resources less than minimal count)
##
## You can get minimal limit for StorageClass with command `kubectl get sc -o yaml | grep -E "(\sname|placementCount)"`
## And view all Resource States with `linstor r l`
- alert: ReplicatedPVIncorrectReplicasCountFatalS3
expr: count(kube_persistentvolume_labels{label_storage_deckhouse_io_pv_not_enough_replicas="fatal"}) > 0
for: 15m
labels:
severity_level: "3"
tier: cluster
annotations:
plk_markup_format: "markdown"
plk_protocol_version: "1"
plk_create_group_if_not_exists__d8_drbd_device_health: "ReplicatedPVSettingsCheck,tier=~tier,prometheus=deckhouse,kubernetes=~kubernetes"
plk_grouped_by__d8_drbd_device_health: "ReplicatedPVSettingsCheck,tier=~tier,prometheus=deckhouse,kubernetes=~kubernetes"
summary: Replicated PVs has not enough replicas
description: |
Persistent volumes in the cluster has less then 2 replicas (set of UpToDate resources)
You can get minimal limit for StorageClass with command `kubectl get sc -o yaml | grep -E "(\sname|placementCount)"`
And view all Resource States with `linstor r l`
- alert: ReplicatedPVIncorrectReplicasCountErrorS3
expr: count(kube_persistentvolume_labels{label_storage_deckhouse_io_pv_not_enough_replicas="error|fatal"}) > 0
for: 30m
labels:
severity_level: "3"
tier: cluster
annotations:
plk_markup_format: "markdown"
plk_protocol_version: "1"
plk_create_group_if_not_exists__d8_drbd_device_health: "ReplicatedPVSettingsCheck,tier=~tier,prometheus=deckhouse,kubernetes=~kubernetes"
plk_grouped_by__d8_drbd_device_health: "ReplicatedPVSettingsCheck,tier=~tier,prometheus=deckhouse,kubernetes=~kubernetes"
summary: Replicated PVs has not enough replicas
description: |
Persistent volumes in the cluster has not enough replicas for quorum for 30min (set of UpToDate resources)
You can get minimal limit for StorageClass with command `kubectl get sc -o yaml | grep -E "(\sname|placementCount)"`
And view all Resource States with `linstor r l`
- alert: ReplicatedPVIncorrectReplicasCountWarningS3
expr: count(kube_persistentvolume_labels{label_storage_deckhouse_io_pv_not_enough_replicas="warning|error|fatal"}) > 0
for: 24h
labels:
severity_level: "3"
tier: cluster
annotations:
plk_markup_format: "markdown"
plk_protocol_version: "1"
plk_create_group_if_not_exists__d8_drbd_device_health: "ReplicatedPVSettingsCheck,tier=~tier,prometheus=deckhouse,kubernetes=~kubernetes"
plk_grouped_by__d8_drbd_device_health: "ReplicatedPVSettingsCheck,tier=~tier,prometheus=deckhouse,kubernetes=~kubernetes"
summary: Replicated PVs has not enough replicas
description: |
Persistent volumes in the cluster has not enough replicas for long time (set of UpToDate resources less than minimal count)
You can get minimal limit for StorageClass with command `kubectl get sc -o yaml | grep -E "(\sname|placementCount)"`
And view all Resource States with `linstor r l`
- alert: ReplicatedPVIncorrectReplicasCountErrorS4
expr: count(kube_persistentvolume_labels{label_storage_deckhouse_io_pv_not_enough_replicas="error|fatal"}) > 0
for: 15m
labels:
severity_level: "4"
tier: cluster
annotations:
plk_markup_format: "markdown"
plk_protocol_version: "1"
plk_create_group_if_not_exists__d8_drbd_device_health: "ReplicatedPVSettingsCheck,tier=~tier,prometheus=deckhouse,kubernetes=~kubernetes"
plk_grouped_by__d8_drbd_device_health: "ReplicatedPVSettingsCheck,tier=~tier,prometheus=deckhouse,kubernetes=~kubernetes"
summary: Replicated PVs has not enough replicas
description: |
Persistent volumes in the cluster has not enough replicas for quorum for 15min (set of UpToDate resources)
You can get minimal limit for StorageClass with command `kubectl get sc -o yaml | grep -E "(\sname|placementCount)"`
And view all Resource States with `linstor r l`
- alert: ReplicatedPVIncorrectReplicasCountWarningS4
expr: count(kube_persistentvolume_labels{label_storage_deckhouse_io_pv_not_enough_replicas="warning|error|fatal"}) > 0
for: 30m
labels:
severity_level: "4"
tier: cluster
annotations:
plk_markup_format: "markdown"
plk_protocol_version: "1"
plk_create_group_if_not_exists__d8_drbd_device_health: "ReplicatedPVSettingsCheck,tier=~tier,prometheus=deckhouse,kubernetes=~kubernetes"
plk_grouped_by__d8_drbd_device_health: "ReplicatedPVSettingsCheck,tier=~tier,prometheus=deckhouse,kubernetes=~kubernetes"
summary: Replicated PVs has not enough replicas
description: |
Persistent volumes in the cluster has not enough replicas for 30min (set of UpToDate resources less than minimal count)
You can get minimal limit for StorageClass with command `kubectl get sc -o yaml | grep -E "(\sname|placementCount)"`
And view all Resource States with `linstor r l`
- alert: ReplicatedPVIncorrectReplicasCountWarningS5
expr: count(kube_persistentvolume_labels{label_storage_deckhouse_io_pv_not_enough_replicas=~"warning|error|fatal"}) > 0
for: 5m
for: 15m
labels:
severity_level: "5"
tier: cluster
Expand Down

0 comments on commit 7fb2aab

Please sign in to comment.