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 +4 -4
- data/bin/graphite-api-middleware +1 -1
- data/lib/graphite-api-middleware.rb +3 -1
- data/lib/graphite-api-middleware/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ac3f77e36ee803648ce7a46b93884b5c45d6ff0b138a0bcac404786d20e6fa3
|
4
|
+
data.tar.gz: 6ad57203e5399efbbc00c9f811305367ec0b550879e599cd6ec67b0878e7940d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16f114cc214dec5bb9f13c35ad9fd7023d52a6d66d66278520f1a3ca8b8dcd2d26625dcb0574c9ae01020f3aec1019916077f9eef26acfaafeb05729bdf44aaf
|
7
|
+
data.tar.gz: bd47c65e81281c05e3b470c435c19d9360f7a65d53eaf517fa3189ced45af819a0b3cc4172d7eb1d81f0a64753afa0350604c779fce42ea27eaed36d1af0475b
|
data/bin/graphite-api-middleware
CHANGED
@@ -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[:
|
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.
|
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
|