Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[netapp-harvest] exclude particular filer for alert #7564

Merged
merged 1 commit into from
Dec 17, 2024
Merged

Conversation

chuan137
Copy link
Member

@chuan137 chuan137 commented Dec 17, 2024

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. Replace host label for it to avoid false alert.

Copy link
Contributor

@Carthaca Carthaca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about replacing the value instead of ignoring this host?

e.g.

label_replace(manila_total_capacity_gb,"share_backend_fqdn","stnpca3-cp001.cc.eu-de-1.cloud.sap","share_backend_fqdn","stnpca3.cc.eu-de-1.cloud.sap")

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.
@chuan137
Copy link
Member Author

What do you think about replacing the value instead of ignoring this host?

e.g.

label_replace(manila_total_capacity_gb,"share_backend_fqdn","stnpca3-cp001.cc.eu-de-1.cloud.sap","share_backend_fqdn","stnpca3.cc.eu-de-1.cloud.sap")

thanks, updated based on your idea

@chuan137 chuan137 requested a review from Carthaca December 17, 2024 13:44
@chuan137 chuan137 merged commit 1e80ac4 into master Dec 17, 2024
2 of 3 checks passed
@chuan137 chuan137 deleted the update-alert branch December 17, 2024 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants