fluent-newrelic-insights 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d0fdb58a2b7afc311cacbed34ece56ff177a8ae
4
- data.tar.gz: 7368c80ace09daff2cddfb3d385052d2e0cc0e26
3
+ metadata.gz: 9a3ae0d3d629b501eac73c9da5e5670a3936cd6f
4
+ data.tar.gz: 1f4f09590a9f004a006751fce3eafe33334e5ed5
5
5
  SHA512:
6
- metadata.gz: c5f417ed9d80daad1942611177b9eed22daa954d8371ff8946ea0af8f0fa0707b430ae69b9bc014c50993f0a3a870f6778cb15f2f70f380dae33a2c623215ad3
7
- data.tar.gz: e3f595494be6e1d4bf7ee0ee2354d7bb81200edcae4c622cb78e94f9e3dcf8ba76322f36e2b5e5a165b0e934cbe579862f591f4c08a4a75e34e18515a88a0168
6
+ metadata.gz: 3ee76ce15ac9c33c9d454ab3829a6d3e112e5ddc2ee04f7c26a0f37d974024625ecacd6dee12e5256f5714793b1fc335646f384018bea1044282d9ab1a4699e4
7
+ data.tar.gz: a6ad5f820ac83010bcd32cdda75c9cd6aced905e6740dadd22739782736c3335e87292a6bf7880a0a77db3fad9677cab7bd197e8c67f573d6b2666b7ddf0cb2b
data/README.md CHANGED
@@ -1,36 +1,74 @@
1
- # Fluent::Newrelic::Insights
2
-
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/fluent/newrelic/insights`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
1
+ # Fluentd output plugin for New Relic Insights
6
2
 
7
3
  ## Installation
8
4
 
9
- Add this line to your application's Gemfile:
10
-
11
5
  ```ruby
6
+ gem 'fluentd'
12
7
  gem 'fluent-newrelic-insights'
13
8
  ```
14
9
 
15
- And then execute:
10
+ ## Configuration
11
+
12
+ ### Account ID and Insert Key
13
+
14
+ `account_id` and `insert_key` are required.
15
+
16
+ ```
17
+ <match **>
18
+ @type newrelic_insights
19
+ account_id <Your Account ID>
20
+ insert_key <Your Insert Key>
21
+ </match>
22
+ ```
23
+
24
+ ### Event Type Key
16
25
 
17
- $ bundle
26
+ You can specify `event_type_key` attribute which is used for Insights' `eventType`. The default value is `eventType`
18
27
 
19
- Or install it yourself as:
28
+ ```
29
+ <match **>
30
+ @type newrelic_insights
31
+ account_id <Your Account ID>
32
+ insert_key <Your Insert Key>
33
+ event_type_key event
34
+ </match>
35
+ ```
20
36
 
21
- $ gem install fluent-newrelic-insights
37
+ ### Event Data Key
22
38
 
23
- ## Usage
39
+ ```
40
+ <match **>
41
+ @type newrelic_insights
42
+ account_id <Your Account ID>
43
+ insert_key <Your Insert Key>
44
+ event_type_key event
45
+ event_data_key eventData
46
+ </match>
47
+ ```
24
48
 
25
- TODO: Write usage instructions here
49
+ `event_data_key` attribute is used to specify the root event data object. The default value is `.` which sends an entire log data to Insights. For example, if you set it to `eventData` and you get the following log data:
26
50
 
27
- ## Development
51
+ ```
52
+ {
53
+ "eventType": "Purchase",
54
+ "foo": "bar",
55
+ "eventData": {
56
+ "amount": 1000,
57
+ "product_id": 123
58
+ }
59
+ }
60
+ ```
28
61
 
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
62
+ the below data will be sent to Insights'
30
63
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
64
+ ```
65
+ {
66
+ "eventType": "Purchase",
67
+ "amount": 1000,
68
+ "product_id": 123
69
+ }
70
+ ```
32
71
 
33
72
  ## Contributing
34
73
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/fluent-newrelic-insights.
36
-
74
+ Bug reports and pull requests are welcome on GitHub at https://github.com/k2nr/fluent-newrelic-insights.
@@ -11,6 +11,6 @@
11
11
 
12
12
  <match **>
13
13
  @type newrelic_insights
14
- account_id 693374
15
- insert_key khOuPU9pe1BC0dkWg2ubEEhPa0-T0UCw
16
- </match>
14
+ account_id 1111
15
+ insert_key 1111111
16
+ </match>
@@ -1,5 +1,5 @@
1
1
  module Fluent
2
2
  module NewrelicInsights
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-newrelic-insights
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kazunori Kajihiro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-20 00:00:00.000000000 Z
11
+ date: 2015-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler