sidekiq-cloudwatchmetrics 2.4.0 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/sidekiq/cloudwatchmetrics.rb +18 -0
- data.tar.gz.sig +1 -3
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 004deef714e38c04cb032d6b38391314e93549fe2cc6727b650b269cdd6f1413
|
4
|
+
data.tar.gz: 22470a586aaf2444b9997fd1e56ce6ce9ed581389fdba76c012fddb7ebbf914c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04bc3f32a5e25b0ee25ace2a349a85a4e9313ef1555bc14757b0f102f02e3819d9f46ed9aefc23e9c8662dbe901194e154bd6a4ed52e8765a86bed7cb2ed7821
|
7
|
+
data.tar.gz: afe7fe3476aaa4fb8b431df1e05b357e46e437f775235a02ef0a31daf7d3c454e8fb4b63eff9f261a91b49c772212c4b8691822f92918b2543ac89d37e194c03
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -164,6 +164,24 @@ module Sidekiq::CloudWatchMetrics
|
|
164
164
|
}
|
165
165
|
end
|
166
166
|
|
167
|
+
processes.group_by do |process|
|
168
|
+
process["tag"]
|
169
|
+
end.each do |(tag, tag_processes)|
|
170
|
+
next if tag.nil?
|
171
|
+
|
172
|
+
tag_utilization = calculate_utilization(tag_processes) * 100.0
|
173
|
+
|
174
|
+
unless tag_utilization.nan?
|
175
|
+
metrics << {
|
176
|
+
metric_name: "Utilization",
|
177
|
+
dimensions: [{name: "Tag", value: tag}],
|
178
|
+
timestamp: now,
|
179
|
+
value: tag_utilization,
|
180
|
+
unit: "Percent",
|
181
|
+
}
|
182
|
+
end
|
183
|
+
end
|
184
|
+
|
167
185
|
if @process_metrics
|
168
186
|
processes.each do |process|
|
169
187
|
process_utilization = process["busy"] / process["concurrency"].to_f * 100.0
|
data.tar.gz.sig
CHANGED
@@ -1,3 +1 @@
|
|
1
|
-
|
2
|
-
0|�����W� �|�7��m@Մwj����
|
3
|
-
�{�d��] ��oP�X�}R�.-�������x^�?�F��W�`�x���];?��G,�5����vq
|
1
|
+
P6������am;>A��j��:+U٤u�{��J�������,�o�6��>���P4Ϣ�y��Rȧi��I� �%��f���&����������c��<"O� �Ξ���+�q��A�]�=��Q�PG� �OW�πyU���-4B?�� YA'|~jĒet~��+�1;tV�}2�DH�Q�u<�������ެ������MOF�E/~,�?��Y��&�3���3h0�=�C9�i�2!���cvw
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq-cloudwatchmetrics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Cochran
|
@@ -29,7 +29,7 @@ cert_chain:
|
|
29
29
|
AAMioxgB6J5QhXQ42OSWIzwHZIbSv3DV9Lf5sde50HIW5f9u5jn29TUGDhSWYKkh
|
30
30
|
LDvy9dfwMMOdIZi75Q8SBBib84AuwhMHIlUv9FcHhh3dXsDDYkrVrpUAwCsG6yCm
|
31
31
|
-----END CERTIFICATE-----
|
32
|
-
date: 2023-03-
|
32
|
+
date: 2023-03-24 00:00:00.000000000 Z
|
33
33
|
dependencies:
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: sidekiq
|
metadata.gz.sig
CHANGED
Binary file
|