-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Nikolay Demchuk <[email protected]>
- Loading branch information
1 parent
5bbb329
commit 4b6a225
Showing
2 changed files
with
40 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
monitoring/prometheus-rules/nfsv3-storage-class-without-nfsv3-support.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
- name: kubernetes.pv.settings_check | ||
rules: | ||
- alert: NotSupportedNFSv3StorageClass | ||
expr: # count(kube_persistentvolume_labels{label_storage_deckhouse_io_linstor_settings_mismatch="true", label_storage_deckhouse_io_linstor_settings_mismatch_ignore!="true"}) > 0 | ||
for: 5m | ||
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 incorrect settings | ||
description: | | ||
# There are persistent volumes in the cluster that were created before migration to ReplicatedStorageClass. | ||
# You can recreate it, or add the label storage.deckhouse.io/linstor-settings-mismatch-ignore!=true to ignore it for the PV. | ||
# Please note that in the future, when transitioning from LINSTOR to a new controller, the settings for all such PVs will be automatically modified to match the current StorageClass settings. | ||
# | ||
# You can view all of such PV with command | ||
# `kubectl get pv -l storage.deckhouse.io/linstor-settings-mismatch=true,storage.deckhouse.io/linstor-settings-mismatch-ignore!=true` | ||
# | ||
# Also, you can add label for all incorrect PVs | ||
# `kubectl label pv -l storage.deckhouse.io/linstor-settings-mismatch=true storage.deckhouse.io/linstor-settings-mismatch-ignore=true` | ||
- alert: #ReplicatedPVWithIncorrectQuorumMinimumRedundancy | ||
expr: # count(kube_persistentvolume_labels{label_storage_deckhouse_io_unable_to_set_quorum_minimum_redundancy="true"}) > 0 | ||
for: 5m | ||
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 incorrect quorum-minimum-redundancy setting | ||
description: | | ||
# There are persistent volumes in the cluster that has incorrect quorum-minimum-redundancy setting. | ||
# | ||
# Please, contact tech support for assistance. |