fluent-plugin-metricsense 0.2.8 → 0.2.9

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
  SHA1:
3
- metadata.gz: 6c643fbeba22178c8a8885ec35a75cf440d32030
4
- data.tar.gz: 7785e0dc9b06c13df3fa970cf706d1f1cb5c42b8
3
+ metadata.gz: d0384f5c3b535a891f4bb0db095cc24f79e30f67
4
+ data.tar.gz: 4f19608ea60b9ad3f9d705e06d818a79237f64f8
5
5
  SHA512:
6
- metadata.gz: b626f5ea31a320dd2ea666e78f30c12d4bebf3d37851c961623edaccd4937767d5b396e7247e514678068923491c1f2f71add3326c3b8a19f9eb85d5677642e8
7
- data.tar.gz: f55ca38fc8cb7c0b9cd0d79ce80b9b2627432c128a58cb99991529021a49cc29f7f1b7d1949c09fed41eabf856c91dde3d986e54ed7126f8dab59de31a8132bd
6
+ metadata.gz: 58ec2daa77a70530eecbae3aab2e8e3c3dfaf11170f423ced04003061ab086b8f88b6accc07bac428a7e68a13be4644baf9178121eaace542dc2ee4fa6aa0fa2
7
+ data.tar.gz: cd20552ce0fe91dd253609126953cacbeb0bce7473c0457ab6053ac473a46bc16cac227ed43d0a7871f3aa6d66c2212c109a20b8b31c53e8847520cd2838dd98
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.8
1
+ 0.2.9
@@ -72,11 +72,15 @@ module Fluent::MetricSenseOutput::Backends
72
72
  end
73
73
 
74
74
  options = {}
75
- options["tags"] = tags
76
- options["host"] = @host if @host
77
- options["type"] = "gauge"
75
+ options[:tags] = tags
76
+ options[:host] = @host if @host
77
+ options[:type] = "gauge"
78
78
 
79
- @dog.emit_points(metric, points, options)
79
+ log.debug("datadog emit points: metric=#{metric}, points=#{points.inspect}, options=#{options.inspect}")
80
+ code, response = @dog.emit_points(metric, points, options)
81
+ if code.to_i / 100 != 2
82
+ raise("datadog returns #{code}: #{response.inspect}")
83
+ end
80
84
  end
81
85
  end
82
86
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-metricsense
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sadayuki Furuhashi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-14 00:00:00.000000000 Z
11
+ date: 2015-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd