sidekiq-cloudwatchmetrics 2.2.0 → 2.3.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 +15 -5
- data.tar.gz.sig +1 -2
- metadata +13 -12
- metadata.gz.sig +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcda0d610239286e3289711209bcd52f55a9ab00f9e37d8d768531ec125e24aa
|
4
|
+
data.tar.gz: 3214895b04fdff713a7ed11c110b7c895e91307594f6ad73c80064a390a89323
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96944fbb1a4b5669280e6146533d5f9d19ed9e67fec5feff31d1cdcb79c545bd0fb7529701bb72fdf72cef2fadc7e6a728c53d5d81726760a7dc4bf781f26d82
|
7
|
+
data.tar.gz: 12fdaf02f031a14937ca4dfc03ab47e96f2e77f43b2b6b635784367326fcf2a94a0c6fbe284981dab7f1fd06cc4876ce8b197bcdd9cca3660c4dbcdb1caa50e5
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -2,7 +2,6 @@
|
|
2
2
|
|
3
3
|
require "sidekiq"
|
4
4
|
require "sidekiq/api"
|
5
|
-
require "sidekiq/util"
|
6
5
|
|
7
6
|
require "aws-sdk-cloudwatch"
|
8
7
|
|
@@ -11,8 +10,9 @@ module Sidekiq::CloudWatchMetrics
|
|
11
10
|
Sidekiq.configure_server do |config|
|
12
11
|
publisher = Publisher.new(**kwargs)
|
13
12
|
|
14
|
-
|
15
|
-
|
13
|
+
# Sidekiq enterprise has a globally unique leader thread, making it
|
14
|
+
# easier to publish the cluster-wide metrics from one place.
|
15
|
+
if defined?(Sidekiq::Enterprise)
|
16
16
|
config.on(:leader) do
|
17
17
|
publisher.start
|
18
18
|
end
|
@@ -34,11 +34,21 @@ module Sidekiq::CloudWatchMetrics
|
|
34
34
|
end
|
35
35
|
|
36
36
|
class Publisher
|
37
|
-
|
37
|
+
begin
|
38
|
+
require "sidekiq/util"
|
39
|
+
include Sidekiq::Util
|
40
|
+
rescue LoadError
|
41
|
+
# Sidekiq 6.5 refactored to use Sidekiq::Component
|
42
|
+
require "sidekiq/component"
|
43
|
+
include Sidekiq::Component
|
44
|
+
end
|
38
45
|
|
39
46
|
INTERVAL = 60 # seconds
|
40
47
|
|
41
|
-
def initialize(client: Aws::CloudWatch::Client.new, namespace: "Sidekiq", additional_dimensions: {})
|
48
|
+
def initialize(config: Sidekiq, client: Aws::CloudWatch::Client.new, namespace: "Sidekiq", additional_dimensions: {})
|
49
|
+
# Sidekiq 6.5+ requires @config, which defaults to the top-level
|
50
|
+
# `Sidekiq` module, but can be overridden when running multiple Sidekiqs.
|
51
|
+
@config = config
|
42
52
|
@client = client
|
43
53
|
@namespace = namespace
|
44
54
|
@additional_dimensions = additional_dimensions.map { |k, v| {name: k.to_s, value: v.to_s} }
|
data.tar.gz.sig
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
5r��.�J� v�}l]j`�����2I��kH�WrdT�$1�<u���� � �����j�"����8';8Ʀ�*Z����V��N�j��HD٫Nax�� K�q¶����XY�!/�>w�@WE�̻?�<[��Z�����]~E�x�EF~�%b9tO˻.=���.WE���O��
|
1
|
+
V����i�&(������:j.��(�̊�����2���%Da�N-������NL@4%�%W
|
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.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Cochran
|
@@ -10,25 +10,26 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICAT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QCsa7k3TABBcyXotr3yCq6f
|
26
|
+
xsgbMG9FR71c4wRgVNQi9O3jN64fQBbxo//BQlHfPCjs1CeU4es9xdQFfhqXAPXG
|
27
|
+
P7mK3+qd5jObjh6l3/rDKrTXNS+P+YO/1frlZ6xPjCA8XgGc4y0rhAjZnVBDV6t1
|
28
|
+
kmdtEmue1s1OxaMakr78XRZDxEuAeLM5fg8MYnlOFygEcAH6lZkTjXavY7s9MXRB
|
29
|
+
AAMioxgB6J5QhXQ42OSWIzwHZIbSv3DV9Lf5sde50HIW5f9u5jn29TUGDhSWYKkh
|
30
|
+
LDvy9dfwMMOdIZi75Q8SBBib84AuwhMHIlUv9FcHhh3dXsDDYkrVrpUAwCsG6yCm
|
30
31
|
-----END CERTIFICATE-----
|
31
|
-
date: 2022-
|
32
|
+
date: 2022-08-15 00:00:00.000000000 Z
|
32
33
|
dependencies:
|
33
34
|
- !ruby/object:Gem::Dependency
|
34
35
|
name: sidekiq
|
metadata.gz.sig
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
|
2
|
-
�
|
1
|
+
�����舤-�pq*
|
2
|
+
�D����J�����@}��%��b`O�Tpg�"���v�W�h�m�g�X���3�6VεH�%��As�"���}�|kؐ˦�>����1����x��+��JL�:���J���6��/��R�<⩋No�V.�OF2u�!�쥅}/e)��1���7��t�����U;�-8uti����@�劋nY��/����\��.W`om���1`o�r�����q�G,T�ŋ
|