Usage - HearstAT/ensemble GitHub Wiki

Usage

Administration

All configuration of tool (PagerDuty, NewRelic, Chef, etc.) is done through the ActiveAdmin Console.

Once the application is running and you are logged in as a user then you need to navigate to the /admin page (eg. http://localhost:3000/admin). You will need to be an admin user and login again.

From these screens you can add Business Units, Pager Duty Configs, New Relic Configs etc.

Services (job queues, cache servers, search engines, etc.)

  • Currently a rake task is used to gather all data from the configured tools:
bundle exec bin/rails rake -T
bundle exec bin/rake gather:pagerduty_incidents
bundle exec bin/rake gather:new_relic
  • These tasks are idempotent and will only add new data that they find.
    • TODO: still working on the active job to update this regularly.
  • Script for /etc/cron.daily/ensemble used in CFN deploy
#!/bin/bash -xe
cd /opt/ensemble # Wherever ensemble installs
[[ -d '/var/log/ensemble' ]] || mkdir -p /var/log/ensemble
find /var/log/ensemble/ -mindepth 1 -mtime +10 -delete
docker-compose exec rails bundle exec rake gather:pagerduty_incidents >> /var/log/ensemble/PD-Gather.$(date +%F).log
  • Script for local install
#!/bin/bash -xe
cd /opt/ensemble # Wherever ensemble installs
[[ -d '/var/log/ensemble' ]] || mkdir -p /var/log/ensemble
find /var/log/ensemble/ -mindepth 1 -mtime +10 -delete
bundle exec rake gather:pagerduty_incidents >> /var/log/ensemble/PD-Gather.$(date +%F).log
⚠️ **GitHub.com Fallback** ⚠️