- Guide 1: Setup Prometheus and Grafana
- Guide 2: Setup Alertmanager & integrate Slack, PagerDuty, & Gmail
- server:
prometheus
executable- run
./prometheus --config.file=prometheus.yml --web.enable-lifecycle
to start server on http://localhost:9090- note: the
--web.enable-lifecycle
flag enables you to reload the prometheus configuration w/o restarting the app viacurl -X POST http://localhost:9090/-/reload
- note: the
- run
- node_exporter: is a Prometheus exporter that exposes a wide variety of hardware- and kernel-related metrics. This means that we can use Node Exporter to monitor filesystems, disks, CPUs, network statistics (and others) of our own computer system.
- run
./node_exporter
to start server on http://localhost:9100
- run
- prom_middleware: a simple Express.js web server
- run
node index.js
to start a web server on http://localhost:9091
- run
- github_exporter: is a Prometheus exporter that exposes git metrics for a github repo.
- run
docker-compose up
to start a server on http://localhost:9171
- run
- alert_manager:
alertmanager
executable- run
./alertmanager --config.file=alertmanager.yml
to run app on http://localhost:9093- note: you can reload the alertmanager configuration w/o restarting the app via
curl -X POST http://localhost:9093/-/reload
- note: you can reload the alertmanager configuration w/o restarting the app via
- run
- GITHUB_TOKEN: GitHub API token to scrape metrics using github_exporter.
- SLACK_API_URL: Slack Webhook URL that AlertManager can push to.
- SLACK_CHANNEL: Slack Channel that AlertManager can post alerts to.