Skip to content

Commit 434982b

Browse files
Merge pull request #34 from DataDog/gaetan.deputier/fluent-http
[Fluent]: v0.12.0
2 parents 520fed6 + 9c9316c commit 434982b

File tree

5 files changed

+507
-129
lines changed

5 files changed

+507
-129
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## 0.12.0
2+
- Migrate to Fluentd v1 APIs
3+
- Enable HTTP forwarding by default
4+
- Enable gzip compression by default for HTTP
5+
- Add an option to disable SSL hostname verification

README.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ if you don't wan't to.
66

77
## Pre-requirements
88

9+
| fluent-plugin-datadog | Fluentd | Ruby |
10+
|:--------------------------|:-----------|:-------|
11+
| \>= 0.12.0 | \>= v1 | \>= 2.4 |
12+
| < 0.12.0 | \>= v0.12.0 | \>= 2.1 |
13+
914
To add the plugin to your fluentd agent, use the following command:
1015

1116
gem install fluent-plugin-datadog
@@ -38,6 +43,14 @@ TCP example:
3843
dd_source '<INTEGRATION_NAME>'
3944
dd_tags '<KEY1:VALU1>,<KEY2:VALUE2>'
4045
dd_sourcecategory '<MY_SOURCE_CATEGORY>'
46+
<buffer>
47+
@type memory
48+
flush_thread_count 4
49+
flush_interval 3s
50+
chunk_limit_size 5m
51+
chunk_limit_records 500
52+
</buffer>
53+
4154

4255
</match>
4356
```
@@ -72,14 +85,19 @@ As fluent-plugin-datadog is an output_buffer, you can set all output_buffer prop
7285
| **tag_key** | Where to store the Fluentd tag. | "tag" |
7386
| **timestamp_key** | Name of the attribute which will contain timestamp of the log event. If nil, timestamp attribute is not added. | "@timestamp" |
7487
| **use_ssl** | If true, the agent initializes a secure connection to Datadog. In clear TCP otherwise. | true |
75-
| **ssl_port** | Port used to send logs over a SSL encripted connection to Datadog (use 443 for the EU region) | 10516 |
88+
| **no_ssl_validation** | Disable SSL validation (useful for proxy forwarding) | false |
89+
| **ssl_port** | Port used to send logs over a SSL encrypted connection to Datadog. If use_http is disabled, use 10516 for the US region and 443 for the EU region. | 443 |
7690
| **max_retries** | The number of retries before the output plugin stops. Set to -1 for unlimited retries | -1 |
91+
| **max_backoff** | The maximum time waited between each retry in seconds | 30 |
92+
| **use_http** | Enable HTTP forwarding. If you disable it, make sure to change the port to 10514 or ssl_port to 10516 | true |
93+
| **use_compression** | Enable log compression for HTTP | true |
94+
| **compression_level** | Set the log compression level for HTTP (1 to 9, 9 being the best ratio) | 6 |
7795
| **dd_source** | This tells Datadog what integration it is | nil |
7896
| **dd_sourcecategory** | Multiple value attribute. Can be used to refine the source attribute | nil |
7997
| **dd_tags** | Custom tags with the following format "key1:value1, key2:value2" | nil |
8098
| **dd_hostname** | Used by Datadog to identify the host submitting the logs. | `hostname -f` |
8199
| **service** | Used by Datadog to correlate between logs, traces and metrics. | nil |
82-
| **port** | Proxy port when logs are not directly forwarded to Datadog and ssl is not used | 10514 |
100+
| **port** | Proxy port when logs are not directly forwarded to Datadog and ssl is not used | 80 |
83101
| **host** | Proxy endpoint when logs are not directly forwarded to Datadog | intake.logs.datadoghq.com |
84102

85103
### Docker and Kubernetes tags

fluent-plugin-datadog.gemspec

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
99

1010
Gem::Specification.new do |spec|
1111
spec.name = "fluent-plugin-datadog"
12-
spec.version = "0.11.1"
12+
spec.version = "0.12.0"
1313
spec.authors = ["Datadog Solutions Team"]
1414
spec.email = ["[email protected]"]
1515
spec.summary = "Datadog output plugin for Fluent event collector"
@@ -22,6 +22,12 @@ Gem::Specification.new do |spec|
2222
spec.require_paths = ["lib"]
2323

2424
spec.add_development_dependency "bundler", "~> 1.5"
25+
spec.add_runtime_dependency "fluentd", [">= 1", "< 2"]
26+
spec.add_runtime_dependency "net-http-persistent", '~> 2.9'
27+
28+
spec.add_development_dependency "test-unit", '~> 3.1'
2529
spec.add_development_dependency "rake"
2630
spec.add_development_dependency "yajl-ruby", "~> 1.2"
31+
32+
2733
end

0 commit comments

Comments
 (0)