yabeda-grape 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/yabeda/grape/version.rb +1 -1
- data/lib/yabeda/grape.rb +2 -2
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '0832f1307e15504b189e61378a96a8433f24999f51f2be4b3fc2dc3e7876a346'
|
|
4
|
+
data.tar.gz: acc1182a3e316f3142c89f38c41c31f19ea0afea4a4cc8a1df2597c69b8a6a98
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ebc0af0c33dd7830ca250d480f9bd897271828026ee62afc15a91ac39f076caed8d3d7057c4e774ccb1230de5b11fc292337305da8406b088d269235b9bd07ae
|
|
7
|
+
data.tar.gz: a63ed0db5570d4872ed1850a6e6c4fa720ea7abe21e5538f0fae0d1cf43605f5b347234cdcee03b7f929d1e290933901488d0222fd5dca636f2d8a22b9ec6309
|
data/README.md
CHANGED
|
@@ -34,6 +34,10 @@ Yabeda::Grape.bind_metrics
|
|
|
34
34
|
* `grape_requests_total` - Total requests received
|
|
35
35
|
* `grape_request_duration_seconds` - Request duration (in seconds)
|
|
36
36
|
|
|
37
|
+
## PromQL examples:
|
|
38
|
+
|
|
39
|
+
* `abs(irate(grape_requests_total[5m]))` - Requests per second (for every endpoint)
|
|
40
|
+
|
|
37
41
|
## Contributing
|
|
38
42
|
|
|
39
43
|
Bug reports and pull requests are welcome on GitHub at https://github.com/efigence/yabeda-grape.
|
data/lib/yabeda/grape/version.rb
CHANGED
data/lib/yabeda/grape.rb
CHANGED
|
@@ -16,9 +16,9 @@ module Yabeda
|
|
|
16
16
|
group :grape
|
|
17
17
|
|
|
18
18
|
counter :requests_total, comment: "A counter of the total number of HTTP requests rails processed.",
|
|
19
|
-
tags: %i[
|
|
19
|
+
tags: %i[method path status]
|
|
20
20
|
histogram :request_duration, unit: :seconds, buckets: LONG_RUNNING_REQUEST_BUCKETS,
|
|
21
|
-
tags: %i[
|
|
21
|
+
tags: %i[method path status],
|
|
22
22
|
comment: "A histogram of the response latency."
|
|
23
23
|
|
|
24
24
|
ActiveSupport::Notifications.subscribe 'endpoint_run.grape' do |*args|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: yabeda-grape
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vadym Filipov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-03-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: yabeda
|
|
@@ -117,8 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
117
117
|
- !ruby/object:Gem::Version
|
|
118
118
|
version: '0'
|
|
119
119
|
requirements: []
|
|
120
|
-
|
|
121
|
-
rubygems_version: 2.7.6
|
|
120
|
+
rubygems_version: 3.0.6
|
|
122
121
|
signing_key:
|
|
123
122
|
specification_version: 4
|
|
124
123
|
summary: Extensible metrics for monitoring Grape API endpoints
|