Skip to content
This repository has been archived by the owner on Jul 12, 2020. It is now read-only.

andrewmcodes-archive/sheepdog

Repository files navigation

Development environment for Prometheus and Grafana Demo

This example illustrates how to use [yabeda] gem suite with rails application to draw graphs for app metrics.

Prerequisites

Recent versions of Docker and Docker Compose installed.

Usage

  • Execute docker-compose up to start.
  • Go to rails application at http://localhost:5000
  • Hit the button and refresh page few times
  • Go to Grafana Web UI at localhost (user: admin/admin)
  • Look for graphs
  • After starting up docker-compose will run rails-stressor service to simulate huge load for the rails app. By default will do the request for 2 minutes. Settings could be changed in docker-compose.yml config (command parameter of the rails_stressor service).

You also could run rails stressor again by executing docker-compose up rails_stressor command.

Notes

Acknowledgement

The Prometheus and Grafana goodies are from yabeda-rb and the Evil Martians crew. This is also a great blog post on Yabeda on the Evil Martian's blog.

Releases

No releases published

Packages

No packages published