redis_prometheus 0.5.0 → 0.5.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
  SHA1:
3
- metadata.gz: ea247931a4430c99043f59747f2d433e4c3d7b30
4
- data.tar.gz: 873124745c75f873387af9d94aab0dd3661285bf
3
+ metadata.gz: 0d9a8ff1fdbf80eb7d1b8bfafe75f90c9ab7081c
4
+ data.tar.gz: 388b417a451bdd7d234b981f82e2f9029f2de9e6
5
5
  SHA512:
6
- metadata.gz: 435a8d12651ab21583e441ff543a889216c238b65d93ac2389a759b5793a8d02de22c93783c57db4e25d03205baa47934e5734180da522da57232afe2cfed3e1
7
- data.tar.gz: 706332e8925a96cc1f26c05c217f3c0048e813dd4e6e33db270052095f10ef345399cc2dfef5239c2456b480ce291981eae68fcd3174547e18767216f1614e15
6
+ metadata.gz: c5c6dde1aa8523c83b077366fd628004f06fc22c3f4ff8f318bd3512a5b03b1e62163aa40c2338ab6dcfb8362a412d8266d9613735895aca21aae345cce0d334
7
+ data.tar.gz: 3a3ccd64bf36079bba1bfa7131f705272471ac760c371d73063731999aea4d653fdb9af775e90b3059139726bfa64209c59a9e683c32bc8d561bea551a1b148e
@@ -30,7 +30,10 @@ module RedisPrometheus
30
30
  response = ""
31
31
 
32
32
  keys = Redis.current.keys("http_request_duration_seconds_bucket/#{ENV["REDIS_PROMETHEUS_SERVICE"]}:*")
33
- values = Redis.current.mget(keys)
33
+ values = []
34
+ if keys.size > 0
35
+ values = Redis.current.mget(keys)
36
+ end
34
37
  response << "# TYPE http_request_duration_seconds_bucket histogram\n"
35
38
  response << "# HELP http_request_duration_seconds_bucket The HTTP response duration of the Rack application.\n"
36
39
  keys.each_with_index do |key, i|
@@ -1,3 +1,3 @@
1
1
  module RedisPrometheus
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis_prometheus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Jeffries