strongmind-sidekiq-cloudwatchmetrics 2.6.4 → 2.6.5

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: 5fe6e911e4388260d1bf13674dce5e4ab6d3433799bfd2848186a43a2d67b809
4
- data.tar.gz: a1c919b1af2905a9591a7aab9c79e691ba361fc286a311fd285e4b55ba252815
3
+ metadata.gz: 4583a94ad6b4bdd8cef65809d4be8856711c1da48237df304ae21719bc386672
4
+ data.tar.gz: e63191c5bd256155f648c9be25b66f4058d8801e9229227283ecfce3dbe29130
5
5
  SHA512:
6
- metadata.gz: 48aa39fe0f573e0db86d27928efb73aeddec2058e24ed6bc8255164514ca128120ca8f548f6f53c3da4156016e577e723e90df32922700f412ead3a313f9890c
7
- data.tar.gz: 58a0d087fa7575ad6935fc40f03b673595fb5338ea591e5ea97d4f64ccc8d699ed50515175d77ff68e26d9936ccf3a9e9d768d17c80ae8319499e7f5a6959017
6
+ metadata.gz: 5d1b6346ce7e5119e27ba0bec11592c58e6b560a065e817ff1bbd2a21af30a56e46152caf4913fd52fd5bd10d9678a2147d4649c86e44f5b4e1607e2e615c32c
7
+ data.tar.gz: 2f36cddd1458bbf0c803c2c0067116f8bf15cd281b3be282f923eced9e96304b0e59c911c4ac578ec08d7142ff82ab9174b6bf5a813a50f957719b0ae4b3b13d
@@ -223,6 +223,15 @@ module Sidekiq::CloudWatchMetrics
223
223
  }
224
224
  end
225
225
 
226
+ highest_latency_metric = metrics.max_by { |metric| metric[:value] }
227
+ metrics << {
228
+ metric_name: "MaxQueueLatency",
229
+ dimensions: [{name: "QueueName", value: "AllQueues"}],
230
+ timestamp: now,
231
+ value: highest_latency_metric[:value],
232
+ unit: "Seconds",
233
+ }
234
+
226
235
  unless @additional_dimensions.empty?
227
236
  metrics = metrics.each do |metric|
228
237
  metric[:dimensions] = (metric[:dimensions] || []) + @additional_dimensions
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strongmind-sidekiq-cloudwatchmetrics
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.4
4
+ version: 2.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - StrongMind Devops
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-20 00:00:00.000000000 Z
11
+ date: 2024-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sidekiq