Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 1004 Bytes

README.md

File metadata and controls

37 lines (29 loc) · 1004 Bytes

PG Stats Aggregator

Read stats collected by PostgreSQL over time and report them to Librato Metrics.

Deploy to Heroku

$ git clone https://github.com/lmarburger/pg_stats_aggregator
Cloning into 'pg_stats_aggregator'...
...

$ cd pg_stats_aggregator
$ heroku apps:create
autoupdating
Creating damp-wave-1398... done, stack is cedar
http://damp-wave-1398.herokuapp.com/ | [email protected]:damp-wave-1398.git
Git remote heroku added

$ git push heroku master
Counting objects: 7, done.
...

$ heroku addons:remove heroku-postgresql:dev
 !    WARNING: Destructive Action
 !    This command will affect the app: damp-wave-1398
 !    To proceed, type "damp-wave-1398" or re-run this command with --confirm damp-wave-1398
> damp-wave-1398

$ heroku config:add \
  DATABASE_URL=postgres:///database \
  [email protected] \
  LIBRATO_METRICS_TOKEN=abc123
Setting config vars and restarting damp-wave-1398...

$ heroku scale clock=1
Scaling clock processes... done, now running 1