sidekiq-datadog-monitor 0.2.5 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6e0e510899e6b233d1bb1d275f9d708c851567176894074ce1d83bc45f21a7a
|
4
|
+
data.tar.gz: af4b6268dec084b4dbc9e3307fdeab2015a57544aaa51a058e9fc8e64f25434c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ad0a766f6d1648815271cd574da145e74599442c0611f8892ffc1c3f650ebf1375173e8600e9e7a30a4a4031c3eee3822d04e80a925fe663a214ccf908c4bf5
|
7
|
+
data.tar.gz: 1291ed9981ad48deb2ccb0e52226f87f199fac0b7da85d892ee227eb34ea2dfa4aa366c9197a457ba013d9618edba5df64a02c1e71b70425eb0317fb5476c28a
|
@@ -3,13 +3,12 @@ module Sidekiq
|
|
3
3
|
module Monitor
|
4
4
|
class Data
|
5
5
|
class << self
|
6
|
-
attr_reader :agent_port, :agent_host, :tags, :env, :queue, :cron
|
6
|
+
attr_reader :agent_port, :agent_host, :tags, :env, :queue, :cron
|
7
7
|
|
8
8
|
def initialize!(options)
|
9
9
|
@agent_port, @agent_host, @queue = options.fetch_values(:agent_port, :agent_host, :queue)
|
10
10
|
@tags = options[:tags] || []
|
11
11
|
@cron = options[:cron] || '*/1 * * * *'
|
12
|
-
@batch = options[:batch] || false
|
13
12
|
|
14
13
|
Sidekiq.configure_server do |config|
|
15
14
|
SidekiqScheduler::Scheduler.dynamic = true
|
@@ -11,10 +11,8 @@ module Sidekiq
|
|
11
11
|
|
12
12
|
def perform
|
13
13
|
statsd = ::Datadog::Statsd.new(Data.agent_host, Data.agent_port)
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
statsd.batch { |batch_statsd| send_metrics(batch_statsd) }
|
14
|
+
send_metrics(statsd)
|
15
|
+
statsd.close
|
18
16
|
end
|
19
17
|
|
20
18
|
private
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq-datadog-monitor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- aleksa_castle
|
@@ -126,22 +126,16 @@ dependencies:
|
|
126
126
|
name: dogstatsd-ruby
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- - "
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: 4.8.1
|
132
|
-
- - "<"
|
129
|
+
- - "~>"
|
133
130
|
- !ruby/object:Gem::Version
|
134
|
-
version: '5'
|
131
|
+
version: '5.0'
|
135
132
|
type: :runtime
|
136
133
|
prerelease: false
|
137
134
|
version_requirements: !ruby/object:Gem::Requirement
|
138
135
|
requirements:
|
139
|
-
- - "
|
140
|
-
- !ruby/object:Gem::Version
|
141
|
-
version: 4.8.1
|
142
|
-
- - "<"
|
136
|
+
- - "~>"
|
143
137
|
- !ruby/object:Gem::Version
|
144
|
-
version: '5'
|
138
|
+
version: '5.0'
|
145
139
|
description:
|
146
140
|
email:
|
147
141
|
- oleksandra.k@matic.com
|