statsdeify
An experimental lib to transmute structured logs to statsd
measurements.
Installation
Add this line to your application's Gemfile:
gem 'statsdeify'
And then execute:
$ bundle
Or install it yourself as:
$ gem install statsdeify
Conventions
Gauges
Produce a log line that contains the following within it:
measure=foo. value=1
Usage
writer = Statsdeify::Writer.new('udp://localhost:8125')
measurement = Statsdeify::Measurement.from_line('measure=foo.bar value=12345')
writer.puts(measurement)
Credit
Giant props to @ryandotsmith and his excellent ryandotsmith/l2met
for inspiration.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request