fluent-plugin-datadog 0.12.1 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +26 -5
- data/fluent-plugin-datadog.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c796cd3bf58664302c3522ede3ed1518c268a1a557cd00244ceef41dcb97b8a7
|
4
|
+
data.tar.gz: 00c4cd64362d94ba967c9239f15cfa830f7e8533345f379433709630754ae2cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58ba2c958571d7756c8cbc18c610a324195a2c0f96e1cc4c62c79dee8438e8f6f16df2f77c50169f84d541e6db39530e47ccd67d8c43b9f2e8c590b5d6c0c360
|
7
|
+
data.tar.gz: a92d2e8972aa49c15609cefcc5b70c75cf8f6a674734935c4795b7d393d3e5e63c669ae3d2503714ad94860e15dd81851009d250e16ed56d9d3c901b44d8372b
|
data/README.md
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# Fluentd output plugin for Datadog
|
2
2
|
|
3
|
-
|
4
|
-
streams logs directly to Datadog - so no need to use a log shipper
|
3
|
+
This output plugin allows sending logs directly from Fluentd to Datadog - so you don't have to use a separate log shipper
|
5
4
|
if you don't wan't to.
|
6
5
|
|
7
6
|
## Pre-requirements
|
@@ -24,7 +23,7 @@ If you installed the td-agent instead
|
|
24
23
|
|
25
24
|
To match events and send them to Datadog, simply add the following code to your configuration file.
|
26
25
|
|
27
|
-
|
26
|
+
HTTP example:
|
28
27
|
|
29
28
|
```xml
|
30
29
|
# Match events tagged with "datadog.**" and
|
@@ -40,9 +39,13 @@ TCP example:
|
|
40
39
|
tag_key 'tag'
|
41
40
|
|
42
41
|
# Optional parameters
|
43
|
-
dd_source '<INTEGRATION_NAME>'
|
42
|
+
dd_source '<INTEGRATION_NAME>'
|
44
43
|
dd_tags '<KEY1:VALUE1>,<KEY2:VALUE2>'
|
45
44
|
dd_sourcecategory '<MY_SOURCE_CATEGORY>'
|
45
|
+
|
46
|
+
# Optional http proxy
|
47
|
+
http_proxy 'http://my-proxy.example'
|
48
|
+
|
46
49
|
<buffer>
|
47
50
|
@type memory
|
48
51
|
flush_thread_count 4
|
@@ -51,7 +54,6 @@ TCP example:
|
|
51
54
|
chunk_limit_records 500
|
52
55
|
</buffer>
|
53
56
|
|
54
|
-
|
55
57
|
</match>
|
56
58
|
```
|
57
59
|
|
@@ -99,6 +101,7 @@ As fluent-plugin-datadog is an output_buffer, you can set all output_buffer prop
|
|
99
101
|
| **service** | Used by Datadog to correlate between logs, traces and metrics. | nil |
|
100
102
|
| **port** | Proxy port when logs are not directly forwarded to Datadog and ssl is not used | 80 |
|
101
103
|
| **host** | Proxy endpoint when logs are not directly forwarded to Datadog | http-intake.logs.datadoghq.com |
|
104
|
+
| **http_proxy** | HTTP proxy, only takes effect if HTTP forwarding is enabled (`use_http`). Defaults to `HTTP_PROXY`/`http_proxy` env vars. | nil |
|
102
105
|
|
103
106
|
### Docker and Kubernetes tags
|
104
107
|
|
@@ -123,6 +126,24 @@ Configuration example:
|
|
123
126
|
</filter>
|
124
127
|
```
|
125
128
|
|
129
|
+
### Encoding
|
130
|
+
|
131
|
+
Datadog's API expects log messages to be encoded in UTF-8.
|
132
|
+
If some of your logs are encoded with a different encoding, we recommend using the [`record_modifier` filter plugin](https://github.com/repeatedly/fluent-plugin-record-modifier#char_encoding)
|
133
|
+
to encode these logs to UTF-8.
|
134
|
+
|
135
|
+
Configuration example:
|
136
|
+
|
137
|
+
```
|
138
|
+
# Change encoding of logs tagged with "datadog.**"
|
139
|
+
<filter datadog.**>
|
140
|
+
@type record_modifier
|
141
|
+
|
142
|
+
# change the encoding from the '<SOURCE_ENCODING>' of your logs to 'utf-8'
|
143
|
+
char_encoding <SOURCE_ENCODING>:utf-8
|
144
|
+
</filter>
|
145
|
+
```
|
146
|
+
|
126
147
|
## Build
|
127
148
|
|
128
149
|
To build a new version of this plugin and push it to RubyGems:
|
@@ -9,7 +9,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
9
9
|
|
10
10
|
Gem::Specification.new do |spec|
|
11
11
|
spec.name = "fluent-plugin-datadog"
|
12
|
-
spec.version = "0.
|
12
|
+
spec.version = "0.13.0"
|
13
13
|
spec.authors = ["Datadog Solutions Team"]
|
14
14
|
spec.email = ["support@datadoghq.com"]
|
15
15
|
spec.summary = "Datadog output plugin for Fluent event collector"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-datadog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Datadog Solutions Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|
@@ -147,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
147
147
|
- !ruby/object:Gem::Version
|
148
148
|
version: '0'
|
149
149
|
requirements: []
|
150
|
-
rubygems_version: 3.0.
|
150
|
+
rubygems_version: 3.0.3
|
151
151
|
signing_key:
|
152
152
|
specification_version: 4
|
153
153
|
summary: Datadog output plugin for Fluent event collector
|