No commit activity in last 3 years
No release in over 3 years
This gem is fluent plugin to insert on Heroku Postgre.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
~> 0
~> 0

Runtime

~> 0.10
~> 0.17
 Project Readme

Fluentd Plugin for Heroku Postgres

td-agent on Heroku.

Installation

Add this line to your application's Gemfile:

gem 'fluent-plugin-heroku-postgres'

And then execute:

$ bundle

Usage

  • example

td-agent-conf.rb

※ Not 'td-agent.conf'

# td-agent-conf.rb

match('postgres.**') {
  type :heroku_postgres

  heroku_postgres_url "#{::ENV['DATABASE_URL']}"
  key_names 'name'
  sql "INSERT INTO vendors (name) VALUES ($1)"
}

Procfile

web: bundle exec fluentd -c td-agent-conf.rb -i "source { type :http; port $PORT }" -vv

Option

Basic Authentication

  • Using ":basic_auth_http" source type
# Procfile
web: bundle exec fluentd -c td-agent-conf.rb -i "source { type :basic_auth_http; port $PORT }" -vv
  • Set ENV on Heroku config

USERNAME=name PASSWORD=passwd

Contributing

  1. Fork it ( http://github.com//fluent-plugin-heroku-postgres/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request