This example illustrates how to use yabeda gem suite with rails application to draw graphs for app metrics.
Recent versions of Docker and Docker Compose installed.
- Execute
docker-compose up
to start. - Go to rails application at https://localhost:5000
- Hit the button and refresh page few times
- Go to Grafana Web UI at https://localhost:3000/d/000000001/yabeda-metrics-for-rails-and-sidekiq?refresh=10s (user:
admin
/admin
) - Look for graphs
- Sample Rails application is equipped with yabeda-rails, yabeda-sidekiq, and yabeda-prometheus gems and properly configured.
- Raw rails metrics are exposed at https://localhost:5000/metrics
- Raw sidekiq metrics are exposed at https://localhost:5100/metrics
- The Prometheus Web UI runs at https://localhost:9090
- The Grafana Web UI runs at https://localhost:3000 , user:
admin
/admin
. - The Sidekiq Web UI is available at https://localhost:5000/sidekiq
The configurations are based off the following articles and repositories:
- https://finestructure.co/blog/2016/5/16/monitoring-with-prometheus-grafana-docker-part-1
- https://github.com/NikolajLeischner/local-prometheus-grafana
- https://www.digitalocean.com/community/tutorials/how-to-add-a-prometheus-dashboard-to-grafana
This example is available as open source under the terms of the MIT License.