Skip to content

Commit

Permalink
[netapp-harvest] exclude particular filer for alert
Browse files Browse the repository at this point in the history
The name for this filer (stnpca3-cp001) follows old name convention. We
use alternative name in manila-vendor.yaml than how it is configured in
netbox. Exclude it from alert to avoid false alert.
  • Loading branch information
chuan137 committed Dec 17, 2024
1 parent 16aa7b1 commit 1e80ac4
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
groups:
- name: netapp-harvest
rules:
# filer stnpca3.cc.eu-de-1.cloud.sap is scraped with host stnpca3-cp001.cc.eu-de-1.cloud.sap
- alert: NetappHarvestManilaFilerNotScraped
expr: label_replace(manila_total_capacity_gb, "host", "$1", "share_backend_fqdn", "(.*)") unless on(host) netapp_volume_size
for: 15m
expr: |
count by (share_backend_name, host) (
label_replace(
label_replace(
manila_total_capacity_gb{share_backend_name!~"integration"},
"share_backend_fqdn", "stnpca3-cp001.cc.eu-de-1.cloud.sap", "share_backend_fqdn", "stnpca3.cc.eu-de-1.cloud.sap"),
"host", "$1", "share_backend_fqdn", "(.*)"))
unless on (host) netapp_volume_size
for: 30m
labels:
context: netapp-exporter
no_alert_on_absence: "true"
Expand Down

0 comments on commit 1e80ac4

Please sign in to comment.