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 +4 -4
- data/lib/redis_prometheus/middleware.rb +3 -1
- data/lib/redis_prometheus/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89b4298a9286e1da59356a1c6bd62c5aa0c380b0d12df7948afccbf5da6e3503
|
4
|
+
data.tar.gz: 55f362bd09bc6278630c253a4a11ca36e4649d840aa7fe6a8bd5d38f2afafc23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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"
|