No commit activity in last 3 years
No release in over 3 years
Newrelic metrics input plugin for fluentd
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7.2
~> 0.10.58
~> 0.10.1
~> 10.3.2
~> 0.24.1
~> 0.8

Runtime

 Project Readme

fluent-plugin-newrelic_metrics Build Status

NewrelicMetrics plugin for fluentd

Examples

<source>
  type newrelic_metrics
  tag newrelic_applications.exsample
  interval 1m
  metrics applications # applications or servers
  api_key "#{ENV['NEWRELIC_API_KEY']}"
  alert_policy_id XXXXXX,YYYYYY # optional. comma separated values. default is all info.
</source>

<match newrelic_applications.exsample>
  type stdout
</match>

<source>
  type newrelic_metrics
  tag newrelic_servers.exsample
  interval 1m
  metrics servers # applications or servers
  api_key "#{ENV['NEWRELIC_API_KEY']}"
  alert_policy_id XXXXXX,YYYYYY # optional. comma separated values. default is all info.
</source>

<match newrelic_servers.exsample>
  type stdout
</match>

output

2015-10-16 10:00:01 +0900 infra.nerelic_servers: {"id":YYYYYY,"account_id":XXXXXX,"name":"web01","host":"web01","health_status":"green","reporting":true,"last_reported_at":"2015-10-16T01:00:01+00:00","summary":{"cpu":2.2,"cpu_stolen":0.77,"disk_io":0.29,"memory":51.1,"memory_used":1944059904,"memory_total":3806330880,"fullest_disk":39.3,"fullest_disk_free":18792000000},"links":{"alert_policy":123456}}
2015-10-16 10:00:01 +0900 infra.nerelic_servers: {"id":YYYYYY,"account_id":XXXXXX,"name":"web02","host":"web02","health_status":"green","reporting":true,"last_reported_at":"2015-10-16T01:00:01+00:00","summary":{"cpu":1.38,"cpu_stolen":0.37,"disk_io":0.13,"memory":25.2,"memory_used":960495616,"memory_total":3806330880,"fullest_disk":38.3,"fullest_disk_free":19102000000},"links":{"alert_policy":123456}}

Installation

fluent-gem install fluent-plugin-newrelic_metrics

Contributing

  1. Fork it
  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

Information

Copyright

Copyright (c) 2015 Hiroshi Toyama