CGOA practice question 12 of 15

You want to route alerts from Prometheus to Slack in your GitOps workflow. Which tool can you use to achieve this?

Full set: 60 questions
Answer options
A: Alertmanager Correct answer
B: Slack
C: Prometheus
D: Jenkins X
Correct Answer:
A. Alertmanager
Explanation

Prometheus itself only generates alert notifications; the component that actually processes those alerts and ships them to external services such as Slack is Alertmanager. Alertmanager groups and deduplicates incoming alerts and then routes them to one or more “receivers” defined in its configuration file—Slack, PagerDuty, e-mail, etc. Therefore, to forward Prometheus alerts to a Slack channel in a GitOps pipeline, you configure a Slack receiver in Alertmanager and commit that configuration to your Git repository.

Why Incorrect

B. Slack – Acts only as the message recipient; it cannot ingest, group, or forward Prometheus alerts on its own.
C. Prometheus – Generates alerts but lacks built-in mechanisms to send them to external services; relies on Alertmanager for routing.
D. Jenkins X – Automates CI/CD with GitOps but provides no native functionality for processing or routing Prometheus alerts to messaging services.

References

1. Prometheus Project Documentation, “Alertmanager,” Section: Overview – “Alertmanager handles alerts … and routes them to the correct receiver integration such as … Slack.” (https://prometheus.io/docs/alerting/latest/alertmanager/)

2. Prometheus Project Documentation, “Configuration → Receivers → Slack.” (https://prometheus.io/docs/alerting/latest/configuration/#slackconfig)

3. Linux Foundation Course LFS241 “Monitoring Systems and Services with Prometheus,” Chapter 5.2 “Alertmanager and Routing,” pp. 5-6: explains configuring Slack as a receiver in Alertmanager.

Scroll to Top