Bird
0
0

How can you configure Alertmanager to send alerts to different Slack channels based on the Kubernetes namespace label?

hard📝 Workflow Q9 of 15
Kubernetes - Monitoring and Logging
How can you configure Alertmanager to send alerts to different Slack channels based on the Kubernetes namespace label?
AUse routes with 'match' on 'namespace' label and define receivers with different slack_configs channels
BSet a global slack_config with multiple channels listed under 'channels' key
CUse Prometheus scrape configs to route alerts by namespace
DConfigure Kubernetes namespaces to forward alerts directly to Slack
Step-by-Step Solution
Solution:
  1. Step 1: Understand routing by label in Alertmanager

    Routes can match alert labels like 'namespace' to select receivers.
  2. Step 2: Define receivers with slack_configs for each channel

    Each receiver sends alerts to a specific Slack channel.
  3. Final Answer:

    Use routes matching 'namespace' and receivers with slack channels -> Option A
  4. Quick Check:

    Route by label + receiver per channel = correct method [OK]
Quick Trick: Route alerts by label to receivers with specific Slack channels [OK]
Common Mistakes:
  • Trying to list multiple Slack channels globally
  • Using Prometheus scrape configs for alert routing
  • Expecting Kubernetes namespaces to send alerts directly

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes