Skip to content
This repository was archived by the owner on Jul 22, 2020. It is now read-only.

Comments

Implement KEEP_LABELS option#171

Merged
prymitive merged 3 commits intomasterfrom
include-labels
Aug 11, 2017
Merged

Implement KEEP_LABELS option#171
prymitive merged 3 commits intomasterfrom
include-labels

Conversation

@prymitive
Copy link
Contributor

Also add a test for a bug I found while working on this and fix that bug, see commits for details.

This allows to provide a list of labels that are the only labels allowed in the UI, reversing the logic of STRIP_LABELS.
Fixes #170
Strippling labels should be done after alerts are deduplicated, when user requests some alerts with a filter, not during data collection from Alertmanager. When labels are stripped before dedup then they are merged into one, because labels are needed to calculate uniqueness, which means we will return wrong data
@prymitive prymitive merged commit 53f4168 into master Aug 11, 2017
@prymitive prymitive deleted the include-labels branch August 11, 2017 19:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants