mic-kul / rpm-collector-dockerized

Datapoints collector for newrelic_rpm gem for your local environment

Home Page:https://mic-kul.com/2015/10/24/garage-made-self-hosted-newrelic-collector-using-ruby-sinatra-grafana-and-influxdb/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Local RPM collector for newrelic_rpm gem

Collect metrics from your app on development environment.

Usage

Check & execute run.sh It is responsible for:

  1. starting required docker containers (using docker compose)
  2. creating InfluxDB database (if not exists)

Prepare your Rails app:

  1. Install RPM gem
  2. Add monkeypatch so non-ssl collector is allowed (check rails-config/)
  3. Adjust configuration (newrelic.yml) so it points to the local collector

Prepare Grafana:

  1. Visit grafana (http://localhost:3001) (default user/password: admin)
  2. Import grafana-rails-performance-dashboard.json

Demo

Rails Performance Dashboard

Web Transaction Duration

About

Datapoints collector for newrelic_rpm gem for your local environment

https://mic-kul.com/2015/10/24/garage-made-self-hosted-newrelic-collector-using-ruby-sinatra-grafana-and-influxdb/


Languages

Language:Ruby 91.5%Language:Shell 4.6%Language:Dockerfile 3.9%