redis_prometheus 0.2.0 → 0.3.0
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 +1 -0
- data/lib/redis_prometheus/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cebb34af64fb8bcc7f830ad839e473ea3571ce63
|
4
|
+
data.tar.gz: e29c4c87aa940afe57a1531b2e86359bc1fd2a29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 725257ca85d443e29f17b71a824efa1f6b1b5a72aa301defd9ab89740907469dfc86911d8c8222bf16af60a48a54f17005b031f87391b16026c76583a66b0aa9
|
7
|
+
data.tar.gz: 203942230f4dae2730656664ba5dec04ac36effc494afbc3173f81c254a2ad92844f34e290828521e0e3410a5be67056efd1398b11fba61d0de451851f324a97
|
@@ -84,6 +84,7 @@ module RedisPrometheus
|
|
84
84
|
bucket = duration_to_bucket(duration)
|
85
85
|
Redis.current.incr("http_request_duration_seconds_bucket/#{ENV["REDIS_PROMETHEUS_SERVICE"]}:url=#{url}:le=#{bucket}")
|
86
86
|
Redis.current.incr("http_request_requests_counter/#{ENV["REDIS_PROMETHEUS_SERVICE"]}")
|
87
|
+
Redis.current.incrbyfloat("http_request_requests_seconds_sum/#{ENV["REDIS_PROMETHEUS_SERVICE"]}", duration)
|
87
88
|
if code.to_i >= 400 && code.to_i <= 499
|
88
89
|
Redis.current.incr("http_request_client_errors_counter/#{ENV["REDIS_PROMETHEUS_SERVICE"]}")
|
89
90
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redis_prometheus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Jeffries
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-09-
|
11
|
+
date: 2018-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|