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 +4 -4
- data/lib/redis_prometheus/middleware.rb +4 -1
- data/lib/redis_prometheus/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d9a8ff1fdbf80eb7d1b8bfafe75f90c9ab7081c
|
4
|
+
data.tar.gz: 388b417a451bdd7d234b981f82e2f9029f2de9e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =
|
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|
|