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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 183fc3bc7dc8edd31a0cbdba4b874e4c094516677c83e892ff272b0a9f1e8f4d
4
- data.tar.gz: bd679ec6e3f7fe29cdb7a716c0b106f2a66002739f28c476cbb72a6325144ccf
3
+ metadata.gz: accd51094f772f9289583bac864037ab0c45859b9056579da92fb8c52726dd7b
4
+ data.tar.gz: c97322b6d8a6c6acdeaeb831c75a7f35c830b28897489640fe7108fff0dde00e
5
5
  SHA512:
6
- metadata.gz: 0ac22fc5997ff740d0624331a5ed1b9929f39072a872a0845f03bdd77155d14c3f272101f7b7b347555ff254874d1314c8d3d5cfec86d5da341c834ce4cee6d2
7
- data.tar.gz: d641b521560a3c77cb4a917ddbf621a075d0faa6b1e09fdea771251b80bfa4d1609aa2e5ef08c0eedc980029752156d2e0d89782680693150aa8130c3c3fa19c
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
- @url = "https://app.datadoghq.com/api/v1/series"
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.5'
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.5
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: 2023-05-31 00:00:00.000000000 Z
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