sidekiq-datadog-monitor 0.0.0 → 0.0.0.1

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: f45794395b62656e91167f2a556b145732800b08bc3a0b244145000a9dad33ea
4
- data.tar.gz: a974754085c6e22572e8a8121996487fb5480e3beb550797a64c4e19a2f29486
3
+ metadata.gz: 0a10830ba13cd95868a71ddf42c61432616ebafce30152e7373be24f12ace91a
4
+ data.tar.gz: 9146913752a2dae43f4acfb9e2990a613ed8e453dc25099484051b14aeba5ba5
5
5
  SHA512:
6
- metadata.gz: 83f1261fc742416237eca7175e268b7fb8ccdd30b1a7838ae7d7b0701446a8fad4c780e19366b7755ed6d38249dbde064c6303180ae7e7913fa1073b0ec57ad2
7
- data.tar.gz: 23ebf0bf41c49d6ce143e340f6376a75b016d35b64ba36aebe53095986dad969dea0c7ce9790c70bcb39151cfc5bdba87c6554aac681f9e56d13fe9d121a2e89
6
+ metadata.gz: '096babe369642f6baeea91904af9e1b7b3c961042396aff0cc602a02160c182f6ce0238f7a992f1a460a659b0d60057b8cf43f530b198aad389c186cd5da745b'
7
+ data.tar.gz: 27c96a3c4ce1ef1520ec48f2bfc682f2d5e6e34a15b593d3adffb4758b4b3fc13d6238ac7bfe0eaf92d078d2677cd36b728293bbf9f51ef9777028f2ba16894c
data/README.md CHANGED
@@ -1,15 +1,14 @@
1
1
  # Sidekiq::Datadog::Monitor
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/sidekiq/datadog/monitor`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ Library that gather sidekiq jobs metrics (currently, only size and latency)
4
+ and send it to datadog
6
5
 
7
6
  ## Installation
8
7
 
9
8
  Add this line to your application's Gemfile:
10
9
 
11
10
  ```ruby
12
- gem 'sidekiq-datadog-monitor'
11
+ gem 'sidekiq-datadog-monitor', '0.0.1'
13
12
  ```
14
13
 
15
14
  And then execute:
@@ -22,7 +21,31 @@ Or install it yourself as:
22
21
 
23
22
  ## Usage
24
23
 
25
- TODO: Write usage instructions here
24
+ To start sending metrics
25
+
26
+ ```ruby
27
+ # Import the library
28
+ require 'sidekiq/datadog/monitor/data'
29
+
30
+ # Initiate a DogStatsD client instance.
31
+ Sidekiq::Datadog::Monitor::Data.initialize!(
32
+ {agent_host: 'localhost',
33
+ agent_port: 8125,
34
+ env: 'production', # optional
35
+ tag: 'tag', # optional
36
+ queue: 'queue name', # optional
37
+ cron: "*/30 * * * *" # default: "*/1 * * * *"
38
+ }
39
+ )
40
+
41
+ ```
42
+ `agent_host` and `agent_port` instantiate DogStatsD client
43
+
44
+ `env`, `tag`, `queue` settings for background job that will gather and send Sidekiq metrics
45
+
46
+ `cron` - schedule settings for background job that will gather and send Sidekiq metrics
47
+
48
+
26
49
 
27
50
  ## Development
28
51
 
@@ -1,7 +1,7 @@
1
1
  module Sidekiq
2
2
  module Datadog
3
3
  module Monitor
4
- VERSION = "0.0.0"
4
+ VERSION = "0.0.0.1"
5
5
  end
6
6
  end
7
7
  end
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.0.0
4
+ version: 0.0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - aleksa_castle
@@ -56,9 +56,6 @@ dependencies:
56
56
  name: sidekiq
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '2.2'
62
59
  - - ">="
63
60
  - !ruby/object:Gem::Version
64
61
  version: 2.2.1
@@ -66,19 +63,27 @@ dependencies:
66
63
  prerelease: false
67
64
  version_requirements: !ruby/object:Gem::Requirement
68
65
  requirements:
69
- - - "~>"
70
- - !ruby/object:Gem::Version
71
- version: '2.2'
72
66
  - - ">="
73
67
  - !ruby/object:Gem::Version
74
68
  version: 2.2.1
75
69
  - !ruby/object:Gem::Dependency
76
- name: dogstatsd-ruby
70
+ name: sidekiq-scheduler
77
71
  requirement: !ruby/object:Gem::Requirement
78
72
  requirements:
79
73
  - - "~>"
80
74
  - !ruby/object:Gem::Version
81
- version: '4.8'
75
+ version: '2.0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '2.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: dogstatsd-ruby
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
82
87
  - - ">="
83
88
  - !ruby/object:Gem::Version
84
89
  version: 4.8.1
@@ -86,9 +91,6 @@ dependencies:
86
91
  prerelease: false
87
92
  version_requirements: !ruby/object:Gem::Requirement
88
93
  requirements:
89
- - - "~>"
90
- - !ruby/object:Gem::Version
91
- version: '4.8'
92
94
  - - ">="
93
95
  - !ruby/object:Gem::Version
94
96
  version: 4.8.1