Prometheus + Alertmanager

From zero to alerts firing into Slack. Covered in detail: install, instrumentation, alert rule, routing.

Step 1: Run Prometheus

Prometheus runs as a single binary or container. The minimal setup is one config file plus a port; everything else flows from there.

Step 2: Instrument app

Step 3: Write alert rule

Alert rules live in a separate file referenced from the main config. Pin the rule to a real metric and a clear condition; vague rules produce noisy pages.

Step 4: Route to Slack

Alertmanager is the routing brain. Prometheus fires alerts; Alertmanager groups, deduplicates, and dispatches them to Slack, PagerDuty, email.

Antipatterns

What to do this week

Three moves. (1) Run the tutorial end-to-end on your own laptop / sandbox. (2) Apply the pattern to one production workload. (3) Document the variations you needed; share with the team.