-
Notifications
You must be signed in to change notification settings - Fork 833
Proposal for integration with PromOp CRDs #6985
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
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,39 @@ | ||||||
--- | ||||||
title: "Cortex AlertmanagerConfig and PrometheusRule CRD Integration" | ||||||
linkTitle: "AlertmanagerConfig and PrometheusRule CRD Integration" | ||||||
weight: 20 | ||||||
slug: alertmanagerconfig-prometheusrules-crd-integration | ||||||
--- | ||||||
|
||||||
## Summary | ||||||
|
||||||
This proposal explores the idea of enabling Cortex Alertmanager to read and integrate with PrometheusOperator CRD AlertmanagerConfig and PrometheusRule resources. The goal is to bridge the gap between Kubernetes-native alerting configuration management and Cortex's multi-tenant architecture, allowing users to manage both alerting rules and notification configurations using familiar Kubernetes resources. | ||||||
|
||||||
## Problem Statement | ||||||
|
||||||
Currently, Cortex Alertmanager configuration can be managed through: | ||||||
1. Direct HTTP API calls to set/update configurations and rules (when enabled) | ||||||
2. Command-line tool for configuration management (cortextool) | ||||||
3. Manual change of the persisent storage | ||||||
4. I might be missing somehting? | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
While these methods work, they have several limitations: | ||||||
- No Kubernetes-native experience - Users familiar with PrometheusOperator cannot leverage their existing knowledge | ||||||
- Manual configuration management - No automatic synchronization with Kubernetes resources | ||||||
- Limited GitOps integration - Cannot use standard Kubernetes deployment pipelines | ||||||
- Complex multi-tenant setup - Each tenant must manually manage their Alertmanager configuration and rules | ||||||
|
||||||
## The Idea | ||||||
|
||||||
What if Cortex could automatically read AlertmanagerConfig and PrometheusRule CRDs from user namespaces and integrate them into its multi-tenant Alertmanager system? | ||||||
|
||||||
## Approaches Considered | ||||||
|
||||||
### Option 1: Direct S3 Integration | ||||||
Create a component in each user namespace that watches local CRDs and writes directly to the bucket storage that Cortex Alertmanager uses. | ||||||
|
||||||
### Option 2: API Gateway Approach | ||||||
Create a component in each user namespace that reads local CRDs and translates them to API calls to Cortex Alertmanager. | ||||||
|
||||||
### Option 3: Two-Component Architecture | ||||||
Deploy an operator in the user cluster that reads CRDs across all namespaces, and an aggregator in the Cortex namespace that receives and processes the configurations. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.