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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3a7b965ddae391fa045355a90b73aab7f57bdbde6447f9126fc0d7d4736c74bc
4
- data.tar.gz: ceb4ed049aa4c2e52bf813e14ed9b3a3763f470fc9205f40d6a5221b35a16bb9
3
+ metadata.gz: 004deef714e38c04cb032d6b38391314e93549fe2cc6727b650b269cdd6f1413
4
+ data.tar.gz: 22470a586aaf2444b9997fd1e56ce6ce9ed581389fdba76c012fddb7ebbf914c
5
5
  SHA512:
6
- metadata.gz: 82c7cb6ea74a0df7a1e21fbf5961c05dce7129179327e9a5b50568923766ac99e747bb10a45f950ad5b1266930c3f7c3e6a02d90cc370343dc301934dd3d5436
7
- data.tar.gz: a988deae4a7d902c291e6c6ee258459d3864d5da2672b685b783ab93b8e0140a0f54d26a51f75bcbc07b2e66a6962baf22c92659a3d10558432c56ae1287af17
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.0
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-07 00:00:00.000000000 Z
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