logstash-output-datadog_metrics 3.0.5 → 3.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/docs/index.asciidoc +9 -0
- data/lib/logstash/outputs/datadog_metrics.rb +4 -2
- data/logstash-output-datadog_metrics.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: accd51094f772f9289583bac864037ab0c45859b9056579da92fb8c52726dd7b
|
4
|
+
data.tar.gz: c97322b6d8a6c6acdeaeb831c75a7f35c830b28897489640fe7108fff0dde00e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47c0d8833b9550e3f79ed6c8ee920b5ed3ebed253510aecc5aab7a1af5278dc991a08e0f1826424f6737497a3d89b6d965e070b11251b3055efcfc29c9a9712d
|
7
|
+
data.tar.gz: 9d496a37a05a083cf7a41d38f5fc220a57609b027131cd76383db5d64c81142b788b6d1d0cb1de5bfbe3a072d288a3d0fa99e5baf033420dd9bc0a68152cd506
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
## 3.0.6
|
2
|
+
- Add `api_url` config option to allow usage in different regions [#13](https://github.com/logstash-plugins/logstash-output-datadog_metrics/pull/13)
|
3
|
+
|
1
4
|
## 3.0.5
|
2
5
|
- Change `api_key` config type to `password` to prevent leaking in debug logs [#18](https://github.com/logstash-plugins/logstash-output-datadog_metrics/pull/18)
|
3
6
|
|
data/docs/index.asciidoc
CHANGED
@@ -35,6 +35,7 @@ This plugin supports the following configuration options plus the <<plugins-{typ
|
|
35
35
|
|=======================================================================
|
36
36
|
|Setting |Input type|Required
|
37
37
|
| <<plugins-{type}s-{plugin}-api_key>> |<<password,password>>|Yes
|
38
|
+
| <<plugins-{type}s-{plugin}-api_url>> |<<string,string>>|No
|
38
39
|
| <<plugins-{type}s-{plugin}-dd_tags>> |<<array,array>>|No
|
39
40
|
| <<plugins-{type}s-{plugin}-device>> |<<string,string>>|No
|
40
41
|
| <<plugins-{type}s-{plugin}-host>> |<<string,string>>|No
|
@@ -59,6 +60,14 @@ output plugins.
|
|
59
60
|
|
60
61
|
Your DatadogHQ API key. https://app.datadoghq.com/account/settings#api
|
61
62
|
|
63
|
+
[id="plugins-{type}s-{plugin}-api_url"]
|
64
|
+
===== `api_url`
|
65
|
+
|
66
|
+
* Value type is <<string,string>>
|
67
|
+
* Default value is `"https://api.datadoghq.com/api/v1/series"`
|
68
|
+
|
69
|
+
Set the api endpoint for Datadog EU Site users
|
70
|
+
|
62
71
|
[id="plugins-{type}s-{plugin}-dd_tags"]
|
63
72
|
===== `dd_tags`
|
64
73
|
|
@@ -45,14 +45,16 @@ module LogStash module Outputs class DatadogMetrics < LogStash::Outputs::Base
|
|
45
45
|
# How often (in seconds) to flush queued events to Datadog
|
46
46
|
config :timeframe, :validate => :number, :default => 10
|
47
47
|
|
48
|
+
# api endpoint may vary for EU customers
|
49
|
+
config :api_url, :validate => :string, :default => "https://api.datadoghq.com/api/v1/series"
|
50
|
+
|
48
51
|
public
|
49
52
|
|
50
53
|
def register
|
51
54
|
require "net/https"
|
52
55
|
require "uri"
|
53
56
|
|
54
|
-
@
|
55
|
-
@uri = URI.parse(@url)
|
57
|
+
@uri = URI.parse(@api_url)
|
56
58
|
@client = Net::HTTP.new(@uri.host, @uri.port)
|
57
59
|
@client.use_ssl = true
|
58
60
|
@client.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-output-datadog_metrics'
|
3
|
-
s.version = '3.0.
|
3
|
+
s.version = '3.0.6'
|
4
4
|
s.licenses = ['Apache License (2.0)']
|
5
5
|
s.summary = "Sends metrics to DataDogHQ based on Logstash events"
|
6
6
|
s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-output-datadog_metrics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-08-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|