sidekiq-prometheus-exporter 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +0 -3
- data/Appraisals +1 -2
- data/Gemfile +13 -0
- data/README.md +5 -1
- data/Rakefile +6 -3
- data/lib/sidekiq/prometheus/exporter/version.rb +1 -1
- data/lib/sidekiq/prometheus/exporter.rb +5 -4
- data/sidekiq-prometheus-exporter.gemspec +1 -14
- metadata +3 -210
- data/.github/FUNDING.yml +0 -12
- data/.github/workflows/ci.yaml +0 -70
- data/docker/Dockerfile +0 -24
- data/docker/README.md +0 -61
- data/docker/config.ru +0 -41
- data/examples/docker-compose.yml +0 -49
- data/examples/metrics/Dockerfile +0 -7
- data/examples/metrics/config.ru +0 -10
- data/examples/prometheus/prometheus.yml +0 -8
- data/examples/screenshot.png +0 -0
- data/examples/sidekiq/Dockerfile +0 -5
- data/examples/sidekiq/sidekiq.rb +0 -41
- data/examples/sidekiq/sidekiq.yml +0 -5
- data/examples/sidekiq-dashboard.grafana-6.json +0 -837
- data/examples/sidekiq-dashboard.grafana-7.json +0 -845
- data/gemfiles/sidekiq_4.1.0.Gemfile +0 -9
- data/gemfiles/sidekiq_4.1.0.Gemfile.lock +0 -117
- data/gemfiles/sidekiq_4.x.Gemfile +0 -8
- data/gemfiles/sidekiq_4.x.Gemfile.lock +0 -105
- data/gemfiles/sidekiq_5.x.Gemfile +0 -8
- data/gemfiles/sidekiq_5.x.Gemfile.lock +0 -104
- data/gemfiles/sidekiq_6.x.Gemfile +0 -8
- data/gemfiles/sidekiq_6.x.Gemfile.lock +0 -101
- data/gemfiles/sidekiq_7.x.Gemfile +0 -8
- data/gemfiles/sidekiq_7.x.Gemfile.lock +0 -109
- data/gemfiles/sidekiq_latest.Gemfile +0 -9
- data/gemfiles/sidekiq_latest.Gemfile.lock +0 -121
- data/helm/sidekiq-prometheus-exporter/.helmignore +0 -22
- data/helm/sidekiq-prometheus-exporter/Chart.yaml +0 -6
- data/helm/sidekiq-prometheus-exporter/README.md +0 -89
- data/helm/sidekiq-prometheus-exporter/templates/NOTES.txt +0 -15
- data/helm/sidekiq-prometheus-exporter/templates/_helpers.tpl +0 -109
- data/helm/sidekiq-prometheus-exporter/templates/clusterrole.yaml +0 -20
- data/helm/sidekiq-prometheus-exporter/templates/clusterrolebinding.yaml +0 -17
- data/helm/sidekiq-prometheus-exporter/templates/deployment.yaml +0 -65
- data/helm/sidekiq-prometheus-exporter/templates/service.yaml +0 -17
- data/helm/sidekiq-prometheus-exporter/templates/serviceaccount.yaml +0 -9
- data/helm/sidekiq-prometheus-exporter/templates/servicemonitor.yaml +0 -26
- data/helm/sidekiq-prometheus-exporter/values.yaml +0 -139
data/examples/metrics/config.ru
DELETED
data/examples/screenshot.png
DELETED
Binary file
|
data/examples/sidekiq/Dockerfile
DELETED
data/examples/sidekiq/sidekiq.rb
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
class SleepyWorker
|
4
|
-
include Sidekiq::Worker
|
5
|
-
|
6
|
-
sidekiq_options queue: :default
|
7
|
-
|
8
|
-
def perform
|
9
|
-
sleep rand(1...10)
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
class BrokenWorker
|
14
|
-
include Sidekiq::Worker
|
15
|
-
|
16
|
-
sidekiq_options queue: :critical,
|
17
|
-
retry: 5
|
18
|
-
|
19
|
-
def perform
|
20
|
-
raise 'Ooooooops ...'
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
Sidekiq.configure_server do |config|
|
25
|
-
config.redis = {url: 'redis://redis:6379/0'}
|
26
|
-
end
|
27
|
-
|
28
|
-
Sidekiq.configure_client do |config|
|
29
|
-
config.redis = {url: 'redis://redis:6379/0'}
|
30
|
-
end
|
31
|
-
|
32
|
-
Thread.new do
|
33
|
-
sleep 5
|
34
|
-
|
35
|
-
loop do
|
36
|
-
SleepyWorker.perform_async
|
37
|
-
BrokenWorker.perform_async
|
38
|
-
|
39
|
-
sleep rand(1..5)
|
40
|
-
end
|
41
|
-
end
|