Skip to content
No description, website, or topics provided.
Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/fluent/plugin
.gitignore
Gemfile
LICENSE.txt
README.md
Rakefile
fluent-plugin-heroku-postgres.gemspec

README.md

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
You can’t perform that action at this time.