Skip to content

Receiver\integration specific templates #351

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

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

yuri-tceretian
Copy link
Collaborator

This PR proposes a more granular control over the templates for each receiver\integrations. The approach based on label matchers approach that is very common in alerting:

  • Receiver definition is extended with supporting LabelSet.
  • TempalateDefinition is extended with labels.Matchers
  • Template factory is updated to select templates based on labels
  • Receiver builder is updated to create template per integration. This allowed providing additional label to template factory "integrationType", which provides ability to pick template specific to a integration of a specific template kind.

Also, by adding specific labels to receivers we can merge many Mimir configurations into a single Alertmanager providing isolation for receivers and templates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In review
Development

Successfully merging this pull request may close these issues.

1 participant