Skip to content

Grafana + Prometheus + Slack/PagerDuty/Gmail Step-By-Step Guide

Notifications You must be signed in to change notification settings

kudosqujo/prometheus-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grafana + Prometheus + Slack/PagerDuty/Gmail Step-By-Step Guide

  • Guide 1: Setup Prometheus and Grafana
  • Guide 2: Setup Alertmanager & integrate Slack, PagerDuty, & Gmail

Directory Structure

  • 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 via curl -X POST http://localhost:9090/-/reload
  • 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.
  • prom_middleware: a simple Express.js web server
  • github_exporter: is a Prometheus exporter that exposes git metrics for a github repo.
  • 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

Environment Variables that You'll Need to Set

  • 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.

About

Grafana + Prometheus + Slack/PagerDuty/Gmail Step-By-Step Guide

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published