strongmind-sidekiq-cloudwatchmetrics 2.6.4 → 2.6.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sidekiq/cloud_watch_metrics.rb +11 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76720cee023b118e0506a7cf56d1fe2d0fc66aef61673cd2ea7fbd0904b37488
|
4
|
+
data.tar.gz: 77ebeab2c1b6745343911f9386b2dc2b70ee08dfcbf3c90fb820f72af1ee058a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8dcdb99043069126657adcecd78a844dd71b3eb8ca695823ccf7f8547c43b6e8d58d7015fab1e721f8ed1a6996f1f9c688118cc4f276f88fc020c9b264986c53
|
7
|
+
data.tar.gz: cd331c6110543580105e29c1bb869f6c7ec3c0a53f828a300028b326ce84743a19beae65a69e684bbadd6400992b89b6af635d0183b4b7988c5871ac79140b29
|
@@ -223,6 +223,17 @@ module Sidekiq::CloudWatchMetrics
|
|
223
223
|
}
|
224
224
|
end
|
225
225
|
|
226
|
+
highest_latency_metric = metrics.select { |metric| metric[:metric_name] == 'QueueLatency' }
|
227
|
+
.max_by { |metric| metric[:value] }
|
228
|
+
|
229
|
+
metrics << {
|
230
|
+
metric_name: "MaxQueueLatency",
|
231
|
+
dimensions: [{name: "QueueName", value: "AllQueues"}],
|
232
|
+
timestamp: now,
|
233
|
+
value: highest_latency_metric[:value],
|
234
|
+
unit: "Seconds",
|
235
|
+
}
|
236
|
+
|
226
237
|
unless @additional_dimensions.empty?
|
227
238
|
metrics = metrics.each do |metric|
|
228
239
|
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
|
+
version: 2.6.6
|
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-
|
11
|
+
date: 2024-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sidekiq
|