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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0dfd5cb62744f3c60ee6874aa21ef97d25ae01a7925dda3574bf709e1f551336
4
- data.tar.gz: 5f0f547357887a776d86e800487b3beeec6cf823a1a2820704ef198082b68c4a
3
+ metadata.gz: '0832f1307e15504b189e61378a96a8433f24999f51f2be4b3fc2dc3e7876a346'
4
+ data.tar.gz: acc1182a3e316f3142c89f38c41c31f19ea0afea4a4cc8a1df2597c69b8a6a98
5
5
  SHA512:
6
- metadata.gz: b311b0d035ad9a6535524b07d7723a4e6d0356fff830c723c18939ae5a2b63c43392ba98017dc62c318c44fc1439ba724b3b9b508e722688a2d81d852f560b06
7
- data.tar.gz: 8ae38d6b37e2028da92ebfc43c30ca62e8d0fce5d283ca874671acde41c22a7ccc0c2c661416a134c311c95d3eb92eda6f5c15b7ef609968c6ed30cd93d08d72
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.
@@ -1,5 +1,5 @@
1
1
  module Yabeda
2
2
  module Grape
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
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[controller action status format method]
19
+ tags: %i[method path status]
20
20
  histogram :request_duration, unit: :seconds, buckets: LONG_RUNNING_REQUEST_BUCKETS,
21
- tags: %i[controller action status format method],
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.2
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-02-27 00:00:00.000000000 Z
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
- rubyforge_project:
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