fluent-plugin-datadog 0.11.1 → 0.12.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b5d03f1a431fabff4b1578b16530b66af5c4ed9108fafd3149ebff3c3aaeae97
4
- data.tar.gz: b0de09ecbf8cd35ffb0b8e5135dc9b362e9a34f8ebec7af1574c54fb331f2e2d
3
+ metadata.gz: 361a1fe07f49b0617f1ff79e22ec97ce4fc028a03843c5ead5d2819697ce520e
4
+ data.tar.gz: 54f91567b59233612522db98ea9baac1735c160ae2154d73bd77b9722cd0636d
5
5
  SHA512:
6
- metadata.gz: 99e3edfafaa3917b04bba0152462cbbafcba16c71b16ea828b46ec3d526d2808c066474eaba0044f37f0af04f94e59a178b35a8a6c8954a59ecd6132f97dfcb7
7
- data.tar.gz: 8fb07f8e11898794ef21881694f3f9501d95a8dd80b375fe899ed959b81faa6aa1bd523fe792b315f762c32249b8952e26e332c79f0d240d4ecc9f79f56b12b3
6
+ metadata.gz: 6a75714c43526425cff466d17a6dfc40ca9803a420bdccd7384c02a8fba2dac5b9c6703f0037287221bb1a478dfa0ccd8be293dd109861cb4f4acab46872aa85
7
+ data.tar.gz: dea0e351eb6a6557662778c72e3f346c42765009cf46dbf9528228292a17c69019fdfc35018c8960198aec0b54c30728d3857f802a413fe0f756408703a5347b
data/README.md CHANGED
@@ -6,6 +6,11 @@ if you don't wan't to.
6
6
 
7
7
  ## Pre-requirements
8
8
 
9
+ | fluent-plugin-datadog | Fluentd | Ruby |
10
+ |:--------------------------|:-----------|:-------|
11
+ | \>= 0.12.0 | \>= v1 | \>= 2.4 |
12
+ | < 0.12.0 | \>= v0.12.0 | \>= 2.1 |
13
+
9
14
  To add the plugin to your fluentd agent, use the following command:
10
15
 
11
16
  gem install fluent-plugin-datadog
@@ -38,6 +43,14 @@ TCP example:
38
43
  dd_source '<INTEGRATION_NAME>'
39
44
  dd_tags '<KEY1:VALU1>,<KEY2:VALUE2>'
40
45
  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
+
41
54
 
42
55
  </match>
43
56
  ```
@@ -72,14 +85,19 @@ As fluent-plugin-datadog is an output_buffer, you can set all output_buffer prop
72
85
  | **tag_key** | Where to store the Fluentd tag. | "tag" |
73
86
  | **timestamp_key** | Name of the attribute which will contain timestamp of the log event. If nil, timestamp attribute is not added. | "@timestamp" |
74
87
  | **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 |
76
90
  | **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 |
77
95
  | **dd_source** | This tells Datadog what integration it is | nil |
78
96
  | **dd_sourcecategory** | Multiple value attribute. Can be used to refine the source attribute | nil |
79
97
  | **dd_tags** | Custom tags with the following format "key1:value1, key2:value2" | nil |
80
98
  | **dd_hostname** | Used by Datadog to identify the host submitting the logs. | `hostname -f` |
81
99
  | **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 |
83
101
  | **host** | Proxy endpoint when logs are not directly forwarded to Datadog | intake.logs.datadoghq.com |
84
102
 
85
103
  ### Docker and Kubernetes tags
@@ -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.11.1"
12
+ spec.version = "0.12.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"
@@ -22,6 +22,12 @@ Gem::Specification.new do |spec|
22
22
  spec.require_paths = ["lib"]
23
23
 
24
24
  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'
25
29
  spec.add_development_dependency "rake"
26
30
  spec.add_development_dependency "yajl-ruby", "~> 1.2"
31
+
32
+
27
33
  end
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.11.1
4
+ version: 0.12.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: 2020-01-22 00:00:00.000000000 Z
11
+ date: 2020-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -24,6 +24,54 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.5'
27
+ - !ruby/object:Gem::Dependency
28
+ name: fluentd
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '1'
34
+ - - "<"
35
+ - !ruby/object:Gem::Version
36
+ version: '2'
37
+ type: :runtime
38
+ prerelease: false
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: '1'
44
+ - - "<"
45
+ - !ruby/object:Gem::Version
46
+ version: '2'
47
+ - !ruby/object:Gem::Dependency
48
+ name: net-http-persistent
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '2.9'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '2.9'
61
+ - !ruby/object:Gem::Dependency
62
+ name: test-unit
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '3.1'
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '3.1'
27
75
  - !ruby/object:Gem::Dependency
28
76
  name: rake
29
77
  requirement: !ruby/object:Gem::Requirement