graphite-api-middleware 1.1.0 → 1.1.1

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: 27b2522dd39bed00f6fcccd339081a4cb19931263002640847e8a9a794b6d73a
4
- data.tar.gz: 8e80ffd81a903196341155cdf575d4b36ff9600a8f5f9bae025d2a26473c9a67
3
+ metadata.gz: 1ac3f77e36ee803648ce7a46b93884b5c45d6ff0b138a0bcac404786d20e6fa3
4
+ data.tar.gz: 6ad57203e5399efbbc00c9f811305367ec0b550879e599cd6ec67b0878e7940d
5
5
  SHA512:
6
- metadata.gz: e27478176fcd4d3fed13dc7d082b3a59ca8db502336d8cef778689f1b0b3cb4c1aa18459f5a015c72e22ae99a1b9ccad081a6f594da371778634e259f334e98e
7
- data.tar.gz: c975f8590a1e13f8f1c55c6e9f2d6c75966e1c2e80e5378edd44d2fa03aa0aa6ff759bdfc2b24faa7622f75475415b34928f16fd18e52cba29ad0ab450d77960
6
+ metadata.gz: 16f114cc214dec5bb9f13c35ad9fd7023d52a6d66d66278520f1a3ca8b8dcd2d26625dcb0574c9ae01020f3aec1019916077f9eef26acfaafeb05729bdf44aaf
7
+ data.tar.gz: bd47c65e81281c05e3b470c435c19d9360f7a65d53eaf517fa3189ced45af819a0b3cc4172d7eb1d81f0a64753afa0350604c779fce42ea27eaed36d1af0475b
@@ -52,7 +52,7 @@ begin
52
52
 
53
53
  raise "Invalid aggregation method. Valid values are sum, avg or replace." unless ["sum", "avg", "replace", nil].include? opts["--aggregation-method"]
54
54
 
55
- options[:backends] = opts["<graphite-uri>"]
55
+ options[:graphite] = opts["<graphite-uri>"]
56
56
  options[:port] = opts["--port"] if opts["--port"]
57
57
  options[:log_file] = File::expand_path opts["--log-file"] if opts["--log-file"]
58
58
  options[:log_level] = opts["--log-level"] if opts["--log-level"]
@@ -55,7 +55,9 @@ module GraphiteApiMiddleware
55
55
  private :peername
56
56
 
57
57
  def self.default_options
58
- GraphiteAPI::Client.default_options.merge interval: 60, pid: '/var/run/graphite-api-middleware.pid'
58
+ GraphiteAPI::Client.default_options.
59
+ tap {|opts| opts.delete :backends}.
60
+ merge interval: 60, pid: '/var/run/graphite-api-middleware.pid'
59
61
  end
60
62
 
61
63
  def self.start options, logger
@@ -1,3 +1,3 @@
1
1
  module GraphiteApiMiddleware
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphite-api-middleware
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eran Levi