fluent-newrelic-insights 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +56 -18
- data/fluent.conf +3 -3
- data/lib/fluent/plugin/newrelic_insights/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a3ae0d3d629b501eac73c9da5e5670a3936cd6f
|
4
|
+
data.tar.gz: 1f4f09590a9f004a006751fce3eafe33334e5ed5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ee76ce15ac9c33c9d454ab3829a6d3e112e5ddc2ee04f7c26a0f37d974024625ecacd6dee12e5256f5714793b1fc335646f384018bea1044282d9ab1a4699e4
|
7
|
+
data.tar.gz: a6ad5f820ac83010bcd32cdda75c9cd6aced905e6740dadd22739782736c3335e87292a6bf7880a0a77db3fad9677cab7bd197e8c67f573d6b2666b7ddf0cb2b
|
data/README.md
CHANGED
@@ -1,36 +1,74 @@
|
|
1
|
-
#
|
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
|
-
|
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
|
-
|
26
|
+
You can specify `event_type_key` attribute which is used for Insights' `eventType`. The default value is `eventType`
|
18
27
|
|
19
|
-
|
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
|
-
|
37
|
+
### Event Data Key
|
22
38
|
|
23
|
-
|
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
|
-
|
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
|
-
|
51
|
+
```
|
52
|
+
{
|
53
|
+
"eventType": "Purchase",
|
54
|
+
"foo": "bar",
|
55
|
+
"eventData": {
|
56
|
+
"amount": 1000,
|
57
|
+
"product_id": 123
|
58
|
+
}
|
59
|
+
}
|
60
|
+
```
|
28
61
|
|
29
|
-
|
62
|
+
the below data will be sent to Insights'
|
30
63
|
|
31
|
-
|
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/
|
36
|
-
|
74
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/k2nr/fluent-newrelic-insights.
|
data/fluent.conf
CHANGED
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.
|
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-
|
11
|
+
date: 2015-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|