This example uses a Docker Compose setup to demo the tutorials in the official Prometheus documentation.
To run the demo:
docker compose up -d
Next, you can visit:
- localhost:8090/ping demo app to fire the alert defined in rules.yml.
- Prometheus web ui.
- Grafana, including a provisioned Prometheus datasource and dashboard.
- Alertmanager web ui.
To enable the Alertmanager and receive webhook notifications, you have to configure the webhook URL in the alertmanager.yml
file.
receivers:
- name: webhook_receiver
webhook_configs:
- url: '<INSERT-YOUR-WEBHOOK>'
send_resolved: false
You may use one URL from webhook.site. Then, restart the Docker compose environment and follow the instructions in the Alerting based on metrics tutorial for further details.