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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8c59cb7c47a04172276fc269cdf8cd17e63d5fef
4
- data.tar.gz: 5bd10eab113ec3cbbd302c9dea510441c4232b0c
3
+ metadata.gz: cebb34af64fb8bcc7f830ad839e473ea3571ce63
4
+ data.tar.gz: e29c4c87aa940afe57a1531b2e86359bc1fd2a29
5
5
  SHA512:
6
- metadata.gz: f04986c69d9d712b68f7e8c00751db1950ee95bedfebcfc76b96e6586cb16e18d8a08256b0da6fb05601d8422d942a8046a7fb39d0653a3c8a029816cf83fb32
7
- data.tar.gz: c11775bca497be85a7271945fb5b3e83cf6a4d5c0aa030130ac7af7e14f0c5850054abc13cad9ae5d2364e6d17e08efc713aaf8a26e0e4a339c902339643942b
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
@@ -1,3 +1,3 @@
1
1
  module RedisPrometheus
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  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.2.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-26 00:00:00.000000000 Z
11
+ date: 2018-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler