redis_prometheus 0.6.2 → 0.6.3

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
  SHA256:
3
- metadata.gz: b955bca240b5b8fc04ae64e80a314af9696f05d7da5e1916b8a624807fd3f23f
4
- data.tar.gz: deab93a754ac345c87ee6835aac8c2743152482839b7ae90cc0af2b79fe29c44
3
+ metadata.gz: 89b4298a9286e1da59356a1c6bd62c5aa0c380b0d12df7948afccbf5da6e3503
4
+ data.tar.gz: 55f362bd09bc6278630c253a4a11ca36e4649d840aa7fe6a8bd5d38f2afafc23
5
5
  SHA512:
6
- metadata.gz: 199ce6f96de739d8bf5feacf1f7f15afff8ddd566dba24a26b04c7df9abf53f83e117b191f675790be29c90ef517da78b33026a33b1690b6b6d695baaed957ef
7
- data.tar.gz: 665f4d7600079601cb18a19005f356a13fdd17cc7c090a41d42970327efcc8fe02e50ce2e8b14349b5e0596e22704b1de29a3d364711c9403d514c82a30305d5
6
+ metadata.gz: 6e856c315cb6364435699edf0c315333dbc1c13524dc539fe91679052c23797707055620ebb7f20eaff88c8f5705fa5b54437e802ea7c8da62899a0b89c2e6cc
7
+ data.tar.gz: 2ebcc67907a05b9882960be5aaf9fa1fe5d55192ba4c5934804473ddf3d442c8c98b12c1ffabb4b31b323f29876f81eaa128eb693d16474611b6b10fe92a4850
@@ -54,6 +54,8 @@ module RedisPrometheus
54
54
  response << "} #{values[i].to_f}\n"
55
55
  end
56
56
 
57
+ response << RedisPrometheus::Collector.current.stats
58
+
57
59
  response << "# TYPE http_request_duration_seconds_count counter\n"
58
60
  response << "# HELP http_request_duration_seconds_count The total number of HTTP requests handled by the Rack application.\n"
59
61
  requests = Redis.current.get("http_request_duration_seconds_count/#{ENV["REDIS_PROMETHEUS_SERVICE"]}") || 0
@@ -86,7 +88,7 @@ module RedisPrometheus
86
88
  response << "http_request_queue_failed{service=\"#{ENV["REDIS_PROMETHEUS_SERVICE"]}\"} #{stats[:failed]}\n"
87
89
  end
88
90
 
89
-
91
+
90
92
 
91
93
  headers['Content-Encoding'] = "gzip"
92
94
  headers['Content-Type'] = "text/plain"
@@ -1,3 +1,3 @@
1
1
  module RedisPrometheus
2
- VERSION = "0.6.2"
2
+ VERSION = "0.6.3"
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.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Jeffries