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

Alerting: Add filter and remove funcs for custom labels and annotations #63437

Merged
merged 1 commit into from
Feb 20, 2023

Conversation

grobinson-grafana
Copy link
Contributor

What is this feature?

This commit adds filterLabels, filterLabelsRe, removeLabels, and removeLabelsRe functions to templates for custom labels and annotations. It allows for use cases such as removing all private labels.

Why do we need this feature?

[Add a description of the problem the feature is trying to solve.]

Who is this feature for?

[Add information on what kind of user the feature is for.]

Which issue(s) does this PR fix?:

Fixes #63258

Special notes for your reviewer:

@grobinson-grafana grobinson-grafana added this to the 9.5.0 milestone Feb 20, 2023
@grobinson-grafana grobinson-grafana self-assigned this Feb 20, 2023
@grobinson-grafana grobinson-grafana requested a review from a team February 20, 2023 09:57
@grobinson-grafana grobinson-grafana force-pushed the grobinson/add-template-funcs branch 2 times, most recently from 0dad436 to 00ab94b Compare February 20, 2023 09:58
This commit adds filterLabels, filterLabelsRe, removeLabels, and
removeLabelsRe functions to templates for custom labels and annotations.
It allows for use cases such as removing all private labels.
Copy link
Contributor

@alexmobo alexmobo left a comment

Choose a reason for hiding this comment

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

LGTM

@grobinson-grafana grobinson-grafana merged commit 9f2fb3f into main Feb 20, 2023
@grobinson-grafana grobinson-grafana deleted the grobinson/add-template-funcs branch February 20, 2023 14:40
ryantxu pushed a commit that referenced this pull request Mar 2, 2023
…ns (#63437)

This commit adds filterLabels, filterLabelsRe, removeLabels, and
removeLabelsRe functions to templates for custom labels and annotations.
It allows for use cases such as removing all private labels.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Add template functions for custom labels and annotations
3 participants