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.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +0 -3
  3. data/Appraisals +1 -2
  4. data/Gemfile +13 -0
  5. data/README.md +5 -1
  6. data/Rakefile +6 -3
  7. data/lib/sidekiq/prometheus/exporter/version.rb +1 -1
  8. data/lib/sidekiq/prometheus/exporter.rb +5 -4
  9. data/sidekiq-prometheus-exporter.gemspec +1 -14
  10. metadata +3 -210
  11. data/.github/FUNDING.yml +0 -12
  12. data/.github/workflows/ci.yaml +0 -70
  13. data/docker/Dockerfile +0 -24
  14. data/docker/README.md +0 -61
  15. data/docker/config.ru +0 -41
  16. data/examples/docker-compose.yml +0 -49
  17. data/examples/metrics/Dockerfile +0 -7
  18. data/examples/metrics/config.ru +0 -10
  19. data/examples/prometheus/prometheus.yml +0 -8
  20. data/examples/screenshot.png +0 -0
  21. data/examples/sidekiq/Dockerfile +0 -5
  22. data/examples/sidekiq/sidekiq.rb +0 -41
  23. data/examples/sidekiq/sidekiq.yml +0 -5
  24. data/examples/sidekiq-dashboard.grafana-6.json +0 -837
  25. data/examples/sidekiq-dashboard.grafana-7.json +0 -845
  26. data/gemfiles/sidekiq_4.1.0.Gemfile +0 -9
  27. data/gemfiles/sidekiq_4.1.0.Gemfile.lock +0 -117
  28. data/gemfiles/sidekiq_4.x.Gemfile +0 -8
  29. data/gemfiles/sidekiq_4.x.Gemfile.lock +0 -105
  30. data/gemfiles/sidekiq_5.x.Gemfile +0 -8
  31. data/gemfiles/sidekiq_5.x.Gemfile.lock +0 -104
  32. data/gemfiles/sidekiq_6.x.Gemfile +0 -8
  33. data/gemfiles/sidekiq_6.x.Gemfile.lock +0 -101
  34. data/gemfiles/sidekiq_7.x.Gemfile +0 -8
  35. data/gemfiles/sidekiq_7.x.Gemfile.lock +0 -109
  36. data/gemfiles/sidekiq_latest.Gemfile +0 -9
  37. data/gemfiles/sidekiq_latest.Gemfile.lock +0 -121
  38. data/helm/sidekiq-prometheus-exporter/.helmignore +0 -22
  39. data/helm/sidekiq-prometheus-exporter/Chart.yaml +0 -6
  40. data/helm/sidekiq-prometheus-exporter/README.md +0 -89
  41. data/helm/sidekiq-prometheus-exporter/templates/NOTES.txt +0 -15
  42. data/helm/sidekiq-prometheus-exporter/templates/_helpers.tpl +0 -109
  43. data/helm/sidekiq-prometheus-exporter/templates/clusterrole.yaml +0 -20
  44. data/helm/sidekiq-prometheus-exporter/templates/clusterrolebinding.yaml +0 -17
  45. data/helm/sidekiq-prometheus-exporter/templates/deployment.yaml +0 -65
  46. data/helm/sidekiq-prometheus-exporter/templates/service.yaml +0 -17
  47. data/helm/sidekiq-prometheus-exporter/templates/serviceaccount.yaml +0 -9
  48. data/helm/sidekiq-prometheus-exporter/templates/servicemonitor.yaml +0 -26
  49. data/helm/sidekiq-prometheus-exporter/values.yaml +0 -139
@@ -1,10 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'sidekiq'
4
- require 'sidekiq/prometheus/exporter'
5
-
6
- Sidekiq.configure_client do |config|
7
- config.redis = {url: 'redis://redis:6379/0'}
8
- end
9
-
10
- run Sidekiq::Prometheus::Exporter.to_app
@@ -1,8 +0,0 @@
1
- global:
2
- scrape_interval: 5s
3
- evaluation_interval: 5s
4
-
5
- scrape_configs:
6
- - job_name: 'prometheus'
7
- static_configs:
8
- - targets: ['metrics:9292']
Binary file
@@ -1,5 +0,0 @@
1
- FROM ruby:2.3.6-alpine
2
-
3
- RUN gem install sidekiq -v "~> 5.0"
4
- ENTRYPOINT [ "sidekiq" ]
5
- CMD [ "-r", "/sidekiq.rb", "-C", "/sidekiq.yml" ]
@@ -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
@@ -1,5 +0,0 @@
1
- ---
2
- :concurrency: 2
3
- :queues:
4
- - [critical, 2]
5
- - default