prometheus_exporter 0.5.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +42 -0
- data/.gitignore +2 -0
- data/.rubocop.yml +7 -1
- data/Appraisals +10 -0
- data/CHANGELOG +27 -2
- data/README.md +257 -5
- data/bin/prometheus_exporter +21 -0
- data/gemfiles/.bundle/config +2 -0
- data/gemfiles/ar_60.gemfile +5 -0
- data/gemfiles/ar_61.gemfile +7 -0
- data/lib/prometheus_exporter.rb +2 -0
- data/lib/prometheus_exporter/client.rb +32 -4
- data/lib/prometheus_exporter/instrumentation.rb +1 -0
- data/lib/prometheus_exporter/instrumentation/active_record.rb +16 -7
- data/lib/prometheus_exporter/instrumentation/process.rb +2 -0
- data/lib/prometheus_exporter/instrumentation/sidekiq.rb +44 -3
- data/lib/prometheus_exporter/instrumentation/sidekiq_queue.rb +50 -0
- data/lib/prometheus_exporter/metric/base.rb +4 -0
- data/lib/prometheus_exporter/metric/counter.rb +4 -0
- data/lib/prometheus_exporter/metric/gauge.rb +4 -0
- data/lib/prometheus_exporter/metric/histogram.rb +6 -0
- data/lib/prometheus_exporter/metric/summary.rb +7 -0
- data/lib/prometheus_exporter/middleware.rb +26 -8
- data/lib/prometheus_exporter/server.rb +1 -0
- data/lib/prometheus_exporter/server/active_record_collector.rb +1 -0
- data/lib/prometheus_exporter/server/collector.rb +1 -0
- data/lib/prometheus_exporter/server/delayed_job_collector.rb +11 -0
- data/lib/prometheus_exporter/server/hutch_collector.rb +6 -0
- data/lib/prometheus_exporter/server/runner.rb +24 -2
- data/lib/prometheus_exporter/server/shoryuken_collector.rb +8 -0
- data/lib/prometheus_exporter/server/sidekiq_collector.rb +11 -2
- data/lib/prometheus_exporter/server/sidekiq_queue_collector.rb +46 -0
- data/lib/prometheus_exporter/server/web_collector.rb +7 -5
- data/lib/prometheus_exporter/server/web_server.rb +29 -17
- data/lib/prometheus_exporter/version.rb +1 -1
- data/prometheus_exporter.gemspec +9 -5
- metadata +65 -17
- data/.travis.yml +0 -12
@@ -5,6 +5,7 @@ require_relative "server/type_collector"
|
|
5
5
|
require_relative "server/web_collector"
|
6
6
|
require_relative "server/process_collector"
|
7
7
|
require_relative "server/sidekiq_collector"
|
8
|
+
require_relative "server/sidekiq_queue_collector"
|
8
9
|
require_relative "server/delayed_job_collector"
|
9
10
|
require_relative "server/collector_base"
|
10
11
|
require_relative "server/collector"
|
@@ -27,6 +27,7 @@ module PrometheusExporter::Server
|
|
27
27
|
|
28
28
|
@active_record_metrics.map do |m|
|
29
29
|
metric_key = (m["metric_labels"] || {}).merge("pid" => m["pid"])
|
30
|
+
metric_key.merge!(m["custom_labels"]) if m["custom_labels"]
|
30
31
|
|
31
32
|
ACTIVE_RECORD_GAUGES.map do |k, help|
|
32
33
|
k = k.to_s
|
@@ -13,6 +13,7 @@ module PrometheusExporter::Server
|
|
13
13
|
register_collector(WebCollector.new)
|
14
14
|
register_collector(ProcessCollector.new)
|
15
15
|
register_collector(SidekiqCollector.new)
|
16
|
+
register_collector(SidekiqQueueCollector.new)
|
16
17
|
register_collector(DelayedJobCollector.new)
|
17
18
|
register_collector(PumaCollector.new)
|
18
19
|
register_collector(HutchCollector.new)
|
@@ -2,6 +2,17 @@
|
|
2
2
|
|
3
3
|
module PrometheusExporter::Server
|
4
4
|
class DelayedJobCollector < TypeCollector
|
5
|
+
def initialize
|
6
|
+
@delayed_jobs_total = nil
|
7
|
+
@delayed_job_duration_seconds = nil
|
8
|
+
@delayed_jobs_total = nil
|
9
|
+
@delayed_failed_jobs_total = nil
|
10
|
+
@delayed_jobs_max_attempts_reached_total = nil
|
11
|
+
@delayed_job_duration_seconds_summary = nil
|
12
|
+
@delayed_job_attempts_summary = nil
|
13
|
+
@delayed_jobs_enqueued = nil
|
14
|
+
@delayed_jobs_pending = nil
|
15
|
+
end
|
5
16
|
|
6
17
|
def type
|
7
18
|
"delayed_job"
|
@@ -9,6 +9,15 @@ module PrometheusExporter::Server
|
|
9
9
|
|
10
10
|
class Runner
|
11
11
|
def initialize(options = {})
|
12
|
+
@timeout = nil
|
13
|
+
@port = nil
|
14
|
+
@bind = nil
|
15
|
+
@collector_class = nil
|
16
|
+
@type_collectors = nil
|
17
|
+
@prefix = nil
|
18
|
+
@auth = nil
|
19
|
+
@realm = nil
|
20
|
+
|
12
21
|
options.each do |k, v|
|
13
22
|
send("#{k}=", v) if self.class.method_defined?("#{k}=")
|
14
23
|
end
|
@@ -16,6 +25,7 @@ module PrometheusExporter::Server
|
|
16
25
|
|
17
26
|
def start
|
18
27
|
PrometheusExporter::Metric::Base.default_prefix = prefix
|
28
|
+
PrometheusExporter::Metric::Base.default_labels = label
|
19
29
|
|
20
30
|
register_type_collectors
|
21
31
|
|
@@ -32,12 +42,20 @@ module PrometheusExporter::Server
|
|
32
42
|
)
|
33
43
|
end
|
34
44
|
|
35
|
-
server = server_class.new
|
45
|
+
server = server_class.new(port: port, bind: bind, collector: collector, timeout: timeout, verbose: verbose, auth: auth, realm: realm)
|
36
46
|
server.start
|
37
47
|
end
|
38
48
|
|
39
49
|
attr_accessor :unicorn_listen_address, :unicorn_pid_file
|
40
|
-
attr_writer :prefix, :port, :bind, :collector_class, :type_collectors, :timeout, :verbose, :server_class
|
50
|
+
attr_writer :prefix, :port, :bind, :collector_class, :type_collectors, :timeout, :verbose, :server_class, :label, :auth, :realm
|
51
|
+
|
52
|
+
def auth
|
53
|
+
@auth || nil
|
54
|
+
end
|
55
|
+
|
56
|
+
def realm
|
57
|
+
@realm || PrometheusExporter::DEFAULT_REALM
|
58
|
+
end
|
41
59
|
|
42
60
|
def prefix
|
43
61
|
@prefix || PrometheusExporter::DEFAULT_PREFIX
|
@@ -76,6 +94,10 @@ module PrometheusExporter::Server
|
|
76
94
|
@_collector ||= collector_class.new
|
77
95
|
end
|
78
96
|
|
97
|
+
def label
|
98
|
+
@label ||= PrometheusExporter::DEFAULT_LABEL
|
99
|
+
end
|
100
|
+
|
79
101
|
private
|
80
102
|
|
81
103
|
def register_type_collectors
|
@@ -3,6 +3,14 @@
|
|
3
3
|
module PrometheusExporter::Server
|
4
4
|
class ShoryukenCollector < TypeCollector
|
5
5
|
|
6
|
+
def initialize
|
7
|
+
@shoryuken_jobs_total = nil
|
8
|
+
@shoryuken_job_duration_seconds = nil
|
9
|
+
@shoryuken_jobs_total = nil
|
10
|
+
@shoryuken_restarted_jobs_total = nil
|
11
|
+
@shoryuken_failed_jobs_total = nil
|
12
|
+
end
|
13
|
+
|
6
14
|
def type
|
7
15
|
"shoryuken"
|
8
16
|
end
|
@@ -3,12 +3,21 @@
|
|
3
3
|
module PrometheusExporter::Server
|
4
4
|
class SidekiqCollector < TypeCollector
|
5
5
|
|
6
|
+
def initialize
|
7
|
+
@sidekiq_jobs_total = nil
|
8
|
+
@sidekiq_job_duration_seconds = nil
|
9
|
+
@sidekiq_jobs_total = nil
|
10
|
+
@sidekiq_restarted_jobs_total = nil
|
11
|
+
@sidekiq_failed_jobs_total = nil
|
12
|
+
@sidekiq_dead_jobs_total = nil
|
13
|
+
end
|
14
|
+
|
6
15
|
def type
|
7
16
|
"sidekiq"
|
8
17
|
end
|
9
18
|
|
10
19
|
def collect(obj)
|
11
|
-
default_labels = { job_name: obj['name'] }
|
20
|
+
default_labels = { job_name: obj['name'], queue: obj['queue'] }
|
12
21
|
custom_labels = obj['custom_labels']
|
13
22
|
labels = custom_labels.nil? ? default_labels : default_labels.merge(custom_labels)
|
14
23
|
|
@@ -43,7 +52,7 @@ module PrometheusExporter::Server
|
|
43
52
|
if !@sidekiq_jobs_total
|
44
53
|
|
45
54
|
@sidekiq_job_duration_seconds =
|
46
|
-
PrometheusExporter::Metric::
|
55
|
+
PrometheusExporter::Metric::Summary.new(
|
47
56
|
"sidekiq_job_duration_seconds", "Total time spent in sidekiq jobs.")
|
48
57
|
|
49
58
|
@sidekiq_jobs_total =
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
module PrometheusExporter::Server
|
3
|
+
class SidekiqQueueCollector < TypeCollector
|
4
|
+
MAX_SIDEKIQ_METRIC_AGE = 60
|
5
|
+
|
6
|
+
SIDEKIQ_QUEUE_GAUGES = {
|
7
|
+
'backlog_total' => 'Size of the sidekiq queue.',
|
8
|
+
'latency_seconds' => 'Latency of the sidekiq queue.',
|
9
|
+
}.freeze
|
10
|
+
|
11
|
+
attr_reader :sidekiq_metrics, :gauges
|
12
|
+
|
13
|
+
def initialize
|
14
|
+
@sidekiq_metrics = []
|
15
|
+
@gauges = {}
|
16
|
+
end
|
17
|
+
|
18
|
+
def type
|
19
|
+
'sidekiq_queue'
|
20
|
+
end
|
21
|
+
|
22
|
+
def metrics
|
23
|
+
sidekiq_metrics.map do |metric|
|
24
|
+
labels = metric.fetch("labels", {})
|
25
|
+
SIDEKIQ_QUEUE_GAUGES.map do |name, help|
|
26
|
+
if (value = metric[name])
|
27
|
+
gauge = gauges[name] ||= PrometheusExporter::Metric::Gauge.new("sidekiq_queue_#{name}", help)
|
28
|
+
gauge.observe(value, labels)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
gauges.values
|
34
|
+
end
|
35
|
+
|
36
|
+
def collect(object)
|
37
|
+
now = ::Process.clock_gettime(::Process::CLOCK_MONOTONIC)
|
38
|
+
object['queues'].each do |queue|
|
39
|
+
queue["created_at"] = now
|
40
|
+
queue["labels"].merge!(object['custom_labels']) if object['custom_labels']
|
41
|
+
sidekiq_metrics.delete_if { |metric| metric['created_at'] + MAX_SIDEKIQ_METRIC_AGE < now }
|
42
|
+
sidekiq_metrics << queue
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -4,6 +4,11 @@ module PrometheusExporter::Server
|
|
4
4
|
class WebCollector < TypeCollector
|
5
5
|
def initialize
|
6
6
|
@metrics = {}
|
7
|
+
@http_requests_total = nil
|
8
|
+
@http_duration_seconds = nil
|
9
|
+
@http_redis_duration_seconds = nil
|
10
|
+
@http_sql_duration_seconds = nil
|
11
|
+
@http_queue_duration_seconds = nil
|
7
12
|
end
|
8
13
|
|
9
14
|
def type
|
@@ -51,14 +56,11 @@ module PrometheusExporter::Server
|
|
51
56
|
end
|
52
57
|
|
53
58
|
def observe(obj)
|
54
|
-
default_labels =
|
55
|
-
controller: obj['controller'] || 'other',
|
56
|
-
action: obj['action'] || 'other'
|
57
|
-
}
|
59
|
+
default_labels = obj['default_labels']
|
58
60
|
custom_labels = obj['custom_labels']
|
59
61
|
labels = custom_labels.nil? ? default_labels : default_labels.merge(custom_labels)
|
60
62
|
|
61
|
-
@http_requests_total.observe(1, labels
|
63
|
+
@http_requests_total.observe(1, labels)
|
62
64
|
|
63
65
|
if timings = obj["timings"]
|
64
66
|
@http_duration_seconds.observe(timings["total_duration"], labels)
|
@@ -9,9 +9,14 @@ module PrometheusExporter::Server
|
|
9
9
|
class WebServer
|
10
10
|
attr_reader :collector
|
11
11
|
|
12
|
-
def initialize(
|
13
|
-
|
14
|
-
@
|
12
|
+
def initialize(opts)
|
13
|
+
@port = opts[:port] || PrometheusExporter::DEFAULT_PORT
|
14
|
+
@bind = opts[:bind] || PrometheusExporter::DEFAULT_BIND_ADDRESS
|
15
|
+
@collector = opts[:collector] || Collector.new
|
16
|
+
@timeout = opts[:timeout] || PrometheusExporter::DEFAULT_TIMEOUT
|
17
|
+
@verbose = opts[:verbose] || false
|
18
|
+
@auth = opts[:auth]
|
19
|
+
@realm = opts[:realm] || PrometheusExporter::DEFAULT_REALM
|
15
20
|
|
16
21
|
@metrics_total = PrometheusExporter::Metric::Counter.new("collector_metrics_total", "Total metrics processed by exporter web.")
|
17
22
|
|
@@ -23,33 +28,33 @@ module PrometheusExporter::Server
|
|
23
28
|
@sessions_total.observe(0)
|
24
29
|
@bad_metrics_total.observe(0)
|
25
30
|
|
26
|
-
access_log, logger = nil
|
31
|
+
@access_log, @logger = nil
|
27
32
|
|
28
|
-
if verbose
|
29
|
-
access_log = [
|
33
|
+
if @verbose
|
34
|
+
@access_log = [
|
30
35
|
[$stderr, WEBrick::AccessLog::COMMON_LOG_FORMAT],
|
31
36
|
[$stderr, WEBrick::AccessLog::REFERER_LOG_FORMAT],
|
32
37
|
]
|
33
|
-
logger = WEBrick::Log.new($stderr)
|
38
|
+
@logger = WEBrick::Log.new($stderr)
|
34
39
|
else
|
35
|
-
access_log = []
|
36
|
-
logger = WEBrick::Log.new("/dev/null")
|
40
|
+
@access_log = []
|
41
|
+
@logger = WEBrick::Log.new("/dev/null")
|
37
42
|
end
|
38
43
|
|
44
|
+
@logger.info "Using Basic Authentication via #{@auth}" if @verbose && @auth
|
45
|
+
|
39
46
|
@server = WEBrick::HTTPServer.new(
|
40
|
-
Port: port,
|
41
|
-
BindAddress: bind,
|
42
|
-
Logger: logger,
|
43
|
-
AccessLog: access_log,
|
47
|
+
Port: @port,
|
48
|
+
BindAddress: @bind,
|
49
|
+
Logger: @logger,
|
50
|
+
AccessLog: @access_log,
|
44
51
|
)
|
45
52
|
|
46
|
-
@collector = collector || Collector.new
|
47
|
-
@port = port
|
48
|
-
@timeout = timeout
|
49
|
-
|
50
53
|
@server.mount_proc '/' do |req, res|
|
51
54
|
res['Content-Type'] = 'text/plain; charset=utf-8'
|
52
55
|
if req.path == '/metrics'
|
56
|
+
authenticate(req, res) if @auth
|
57
|
+
|
53
58
|
res.status = 200
|
54
59
|
if req.header["accept-encoding"].to_s.include?("gzip")
|
55
60
|
sio = StringIO.new
|
@@ -159,5 +164,12 @@ module PrometheusExporter::Server
|
|
159
164
|
gauge
|
160
165
|
end
|
161
166
|
|
167
|
+
def authenticate(req, res)
|
168
|
+
htpasswd = WEBrick::HTTPAuth::Htpasswd.new(@auth)
|
169
|
+
basic_auth = WEBrick::HTTPAuth::BasicAuth.new({ Realm: @realm, UserDB: htpasswd, Logger: @logger })
|
170
|
+
|
171
|
+
basic_auth.authenticate(req, res)
|
172
|
+
end
|
173
|
+
|
162
174
|
end
|
163
175
|
end
|
data/prometheus_exporter.gemspec
CHANGED
@@ -24,19 +24,23 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.executables = ["prometheus_exporter"]
|
25
25
|
spec.require_paths = ["lib"]
|
26
26
|
|
27
|
+
spec.add_dependency "webrick"
|
28
|
+
|
27
29
|
spec.add_development_dependency "rubocop", ">= 0.69"
|
28
|
-
spec.add_development_dependency "bundler", "
|
29
|
-
spec.add_development_dependency "rake", "~>
|
30
|
+
spec.add_development_dependency "bundler", ">= 2.2.2"
|
31
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
30
32
|
spec.add_development_dependency "minitest", "~> 5.0"
|
31
33
|
spec.add_development_dependency "guard", "~> 2.0"
|
32
|
-
spec.add_development_dependency "mini_racer", "~> 0.1"
|
34
|
+
spec.add_development_dependency "mini_racer", "~> 0.3.1"
|
33
35
|
spec.add_development_dependency "guard-minitest", "~> 2.0"
|
34
36
|
spec.add_development_dependency "oj", "~> 3.0"
|
35
37
|
spec.add_development_dependency "rack-test", "~> 0.8.3"
|
36
38
|
spec.add_development_dependency "minitest-stub-const", "~> 0.6"
|
37
|
-
spec.add_development_dependency
|
39
|
+
spec.add_development_dependency "rubocop-discourse", ">2"
|
40
|
+
spec.add_development_dependency "appraisal", "~> 2.3"
|
41
|
+
spec.add_development_dependency "activerecord", "~> 6.0.0"
|
38
42
|
if !RUBY_ENGINE == 'jruby'
|
39
43
|
spec.add_development_dependency "raindrops", "~> 0.19"
|
40
44
|
end
|
41
|
-
spec.required_ruby_version = '>= 2.
|
45
|
+
spec.required_ruby_version = '>= 2.5.0'
|
42
46
|
end
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prometheus_exporter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Saffron
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: webrick
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: rubocop
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -28,30 +42,30 @@ dependencies:
|
|
28
42
|
name: bundler
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
30
44
|
requirements:
|
31
|
-
- - "
|
45
|
+
- - ">="
|
32
46
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
47
|
+
version: 2.2.2
|
34
48
|
type: :development
|
35
49
|
prerelease: false
|
36
50
|
version_requirements: !ruby/object:Gem::Requirement
|
37
51
|
requirements:
|
38
|
-
- - "
|
52
|
+
- - ">="
|
39
53
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
54
|
+
version: 2.2.2
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: rake
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
44
58
|
requirements:
|
45
59
|
- - "~>"
|
46
60
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
61
|
+
version: '13.0'
|
48
62
|
type: :development
|
49
63
|
prerelease: false
|
50
64
|
version_requirements: !ruby/object:Gem::Requirement
|
51
65
|
requirements:
|
52
66
|
- - "~>"
|
53
67
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
68
|
+
version: '13.0'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: minitest
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,14 +100,14 @@ dependencies:
|
|
86
100
|
requirements:
|
87
101
|
- - "~>"
|
88
102
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
103
|
+
version: 0.3.1
|
90
104
|
type: :development
|
91
105
|
prerelease: false
|
92
106
|
version_requirements: !ruby/object:Gem::Requirement
|
93
107
|
requirements:
|
94
108
|
- - "~>"
|
95
109
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
110
|
+
version: 0.3.1
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
112
|
name: guard-minitest
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -152,18 +166,46 @@ dependencies:
|
|
152
166
|
version: '0.6'
|
153
167
|
- !ruby/object:Gem::Dependency
|
154
168
|
name: rubocop-discourse
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">"
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '2'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">"
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '2'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: appraisal
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - "~>"
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '2.3'
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - "~>"
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '2.3'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: activerecord
|
155
197
|
requirement: !ruby/object:Gem::Requirement
|
156
198
|
requirements:
|
157
199
|
- - "~>"
|
158
200
|
- !ruby/object:Gem::Version
|
159
|
-
version:
|
201
|
+
version: 6.0.0
|
160
202
|
type: :development
|
161
203
|
prerelease: false
|
162
204
|
version_requirements: !ruby/object:Gem::Requirement
|
163
205
|
requirements:
|
164
206
|
- - "~>"
|
165
207
|
- !ruby/object:Gem::Version
|
166
|
-
version:
|
208
|
+
version: 6.0.0
|
167
209
|
description: Prometheus metric collector and exporter for Ruby
|
168
210
|
email:
|
169
211
|
- sam.saffron@gmail.com
|
@@ -172,9 +214,10 @@ executables:
|
|
172
214
|
extensions: []
|
173
215
|
extra_rdoc_files: []
|
174
216
|
files:
|
217
|
+
- ".github/workflows/ci.yml"
|
175
218
|
- ".gitignore"
|
176
219
|
- ".rubocop.yml"
|
177
|
-
-
|
220
|
+
- Appraisals
|
178
221
|
- CHANGELOG
|
179
222
|
- CODE_OF_CONDUCT.md
|
180
223
|
- Gemfile
|
@@ -185,6 +228,9 @@ files:
|
|
185
228
|
- bench/bench.rb
|
186
229
|
- bin/prometheus_exporter
|
187
230
|
- examples/custom_collector.rb
|
231
|
+
- gemfiles/.bundle/config
|
232
|
+
- gemfiles/ar_60.gemfile
|
233
|
+
- gemfiles/ar_61.gemfile
|
188
234
|
- lib/prometheus_exporter.rb
|
189
235
|
- lib/prometheus_exporter/client.rb
|
190
236
|
- lib/prometheus_exporter/instrumentation.rb
|
@@ -196,6 +242,7 @@ files:
|
|
196
242
|
- lib/prometheus_exporter/instrumentation/puma.rb
|
197
243
|
- lib/prometheus_exporter/instrumentation/shoryuken.rb
|
198
244
|
- lib/prometheus_exporter/instrumentation/sidekiq.rb
|
245
|
+
- lib/prometheus_exporter/instrumentation/sidekiq_queue.rb
|
199
246
|
- lib/prometheus_exporter/instrumentation/unicorn.rb
|
200
247
|
- lib/prometheus_exporter/metric.rb
|
201
248
|
- lib/prometheus_exporter/metric/base.rb
|
@@ -215,6 +262,7 @@ files:
|
|
215
262
|
- lib/prometheus_exporter/server/runner.rb
|
216
263
|
- lib/prometheus_exporter/server/shoryuken_collector.rb
|
217
264
|
- lib/prometheus_exporter/server/sidekiq_collector.rb
|
265
|
+
- lib/prometheus_exporter/server/sidekiq_queue_collector.rb
|
218
266
|
- lib/prometheus_exporter/server/type_collector.rb
|
219
267
|
- lib/prometheus_exporter/server/unicorn_collector.rb
|
220
268
|
- lib/prometheus_exporter/server/web_collector.rb
|
@@ -234,15 +282,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
234
282
|
requirements:
|
235
283
|
- - ">="
|
236
284
|
- !ruby/object:Gem::Version
|
237
|
-
version: 2.
|
285
|
+
version: 2.5.0
|
238
286
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
239
287
|
requirements:
|
240
288
|
- - ">="
|
241
289
|
- !ruby/object:Gem::Version
|
242
290
|
version: '0'
|
243
291
|
requirements: []
|
244
|
-
rubygems_version: 3.
|
245
|
-
signing_key:
|
292
|
+
rubygems_version: 3.2.2
|
293
|
+
signing_key:
|
246
294
|
specification_version: 4
|
247
295
|
summary: Prometheus Exporter
|
248
296
|
test_files: []
|