Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion prometheus-rules/prometheus-vmware-rules/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
description: A collection of Prometheus alert rules.
name: prometheus-vmware-rules
version: 1.4.9
version: 1.5.0
dependencies:
- name: owner-info
repository: oci://keppel.eu-de-1.cloud.sap/ccloud-helm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -371,3 +371,98 @@ groups:
annotations:
description: "cinder_aggregate_id is not set for the `{{ $labels.datastore }}` NFS datastore in *{{ $labels.datacenter }}* availability zone.\nLink to the vCenter: --> <https://{{ $labels.vcenter }}|{{ $labels.vcenter }}>"
summary: "cinder_aggregate_id is not set for the `{{ $labels.datastore }}` NFS datastore in *{{ $labels.datacenter }}* availability zone.\nLink to the vCenter: --> <https://{{ $labels.vcenter }}|{{ $labels.vcenter }}>"

- alert: NFSQtreeDatastoreCinderAggregateIDNotMatching
expr: |
# PART 1: Individual Validation (Wrong/Empty IDs)
(
max by (vcenter, datacenter, datastore, summary_custom_tag_cinder_aggregate_id) (
vrops_datastore_summary_custom_tag_cinder_aggregate_id{datastore=~"^nfs_.*_vc_[a-zA-Z]_[0-9]+$"}
)
unless
max by (vcenter, datacenter, datastore, summary_custom_tag_cinder_aggregate_id) (
vrops_datastore_summary_custom_tag_cinder_aggregate_id{summary_custom_tag_cinder_aggregate_id=~"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"}
)
)
OR
# PART 2: Consistency Check (Grouped by name before the last _Y)
(
label_replace(
max by (vcenter, datacenter, datastore, summary_custom_tag_cinder_aggregate_id) (
vrops_datastore_summary_custom_tag_cinder_aggregate_id{datastore=~"^nfs_.*_vc_[a-zA-Z]_[0-9]+$"}
),
"datastore_group", "$1", "datastore", "^(.*)_[0-9]+$"
)
and ON(vcenter, datacenter, datastore_group) (
count by (vcenter, datacenter, datastore_group) (
count by (vcenter, datacenter, datastore_group, summary_custom_tag_cinder_aggregate_id) (
label_replace(
max by (vcenter, datacenter, datastore, summary_custom_tag_cinder_aggregate_id) (
vrops_datastore_summary_custom_tag_cinder_aggregate_id{datastore=~"^nfs_.*_vc_[a-zA-Z]_[0-9]+$"}
),
"datastore_group", "$1", "datastore", "^(.*)_[0-9]+$"
)
)
) > 1
)
)
for: 30m
labels:
severity: warning
tier: vmware
service: storage
support_group: compute
meta: "cinder_aggregate_id is not set for the `{{ $labels.datastore }}` NFS datastore in *{{ $labels.datacenter }}* availability zone.\nLink to the vCenter: --> <https://{{ $labels.vcenter }}|{{ $labels.vcenter }}>"
playbook: docs/support/playbook/cinder/cinder-fcd-operations/#nfsdatastorecinderaggregateidnotset
annotations:
description: "cinder_aggregate_id is not set for the `{{ $labels.datastore }}` NFS datastore in *{{ $labels.datacenter }}* availability zone.\nLink to the vCenter: --> <https://{{ $labels.vcenter }}|{{ $labels.vcenter }}>"
summary: "cinder_aggregate_id is not set for the `{{ $labels.datastore }}` NFS datastore in *{{ $labels.datacenter }}* availability zone.\nLink to the vCenter: --> <https://{{ $labels.vcenter }}|{{ $labels.vcenter }}>"

- alert: NFSDatastoreCinderAggregateIDNotMatching
expr: |
# PART 1: Format Validation (The 8-8-0000... pattern)
(
max by (vcenter, datacenter, datastore, summary_custom_tag_cinder_aggregate_id) (
vrops_datastore_summary_custom_tag_cinder_aggregate_id{
datastore=~"^nfs_.*",
datastore!~".*_vc_[a-zA-Z]_[0-9]+$"
}
)
unless
max by (vcenter, datacenter, datastore, summary_custom_tag_cinder_aggregate_id) (
vrops_datastore_summary_custom_tag_cinder_aggregate_id{
summary_custom_tag_cinder_aggregate_id=~"^[0-9a-fA-F]{8}-[0-9a-fA-F]{8}-0000-000000000000$"
}
)
)
OR
# PART 2: Global Consistency (Name must match ID everywhere)
(
max by (vcenter, datacenter, datastore, summary_custom_tag_cinder_aggregate_id) (
vrops_datastore_summary_custom_tag_cinder_aggregate_id{
datastore=~"^nfs_.*",
datastore!~".*_vc_[a-zA-Z]_[0-9]+$"
}
)
and ON(datastore) (
count by (datastore) (
count by (datastore, summary_custom_tag_cinder_aggregate_id) (
vrops_datastore_summary_custom_tag_cinder_aggregate_id{
datastore=~"^nfs_.*",
datastore!~".*_vc_[a-zA-Z]_[0-9]+$"
}
)
) > 1
)
)
for: 30m
labels:
severity: warning
tier: vmware
service: storage
support_group: compute
meta: "cinder_aggregate_id is not set for the `{{ $labels.datastore }}` NFS datastore in *{{ $labels.datacenter }}* availability zone.\nLink to the vCenter: --> <https://{{ $labels.vcenter }}|{{ $labels.vcenter }}>"
playbook: docs/support/playbook/cinder/cinder-fcd-operations/#nfsdatastorecinderaggregateidnotset
annotations:
description: "cinder_aggregate_id is not set for the `{{ $labels.datastore }}` NFS datastore in *{{ $labels.datacenter }}* availability zone.\nLink to the vCenter: --> <https://{{ $labels.vcenter }}|{{ $labels.vcenter }}>"
summary: "cinder_aggregate_id is not set for the `{{ $labels.datastore }}` NFS datastore in *{{ $labels.datacenter }}* availability zone.\nLink to the vCenter: --> <https://{{ $labels.vcenter }}|{{ $labels.vcenter }}>"