Skip to content

Instantly share code, notes, and snippets.

@samber
Last active January 25, 2019 06:52
Show Gist options
  • Save samber/b1d47598621799a06d7583e1f98b639a to your computer and use it in GitHub Desktop.
Save samber/b1d47598621799a06d7583e1f98b639a to your computer and use it in GitHub Desktop.
Workshop prometheus + grafana

Prometheus is a lightweight timeseries database, based on the Borgmon model (Google).

It takes advantage of a large and rich ecosystem to monitor:

  • servers
  • services (applications, databases...)
  • real-time business metrics (number of users, purchases, average cart size...)
  • Prometheus can be plugged into any kind of infrastructure, without being obstrusive and can fetch configuration from service discovery such as Consul, Kubernetes, DNS, EC2...

What would have been a monitoring platform without alerting and some graphic dashboards ?! During this workshop, we will setup a POC with Prometheus, Grafana and alertmanager.

Steps:

  • πŸ’ͺ setup prometheus
  • πŸ‹οΈ exporting metrics: server
  • πŸš„ more metrics: services
  • πŸš€ always more metrics: business metrics
  • πŸ€” queries
  • πŸ“ˆ visualization
  • πŸš’ alerting

Developers are welcomed!

Bring your laptop. No requirement is needed, but having experience with Docker will save you time.

Workshop is available here: git clone https://github.com/samber/workshop-prometheus-grafana

Please pull following Docker images before D-Day:

docker pull prom/prometheus
docker pull grafana/grafana
docker pull prom/node-exporter
docker pull etiennetremel/nginx-prometheus
docker pull postgres:10
docker pull wrouesnel/postgres_exporter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment