prometheus_exporter 0.4.9 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +6 -1
  3. data/CHANGELOG +43 -0
  4. data/Gemfile +2 -0
  5. data/Guardfile +2 -0
  6. data/README.md +84 -3
  7. data/Rakefile +2 -0
  8. data/bench/bench.rb +2 -0
  9. data/bin/prometheus_exporter +8 -1
  10. data/examples/custom_collector.rb +2 -0
  11. data/lib/prometheus_exporter/client.rb +19 -7
  12. data/lib/prometheus_exporter/instrumentation/active_record.rb +87 -0
  13. data/lib/prometheus_exporter/instrumentation/delayed_job.rb +9 -3
  14. data/lib/prometheus_exporter/instrumentation/method_profiler.rb +2 -0
  15. data/lib/prometheus_exporter/instrumentation/process.rb +1 -12
  16. data/lib/prometheus_exporter/instrumentation/puma.rb +4 -2
  17. data/lib/prometheus_exporter/instrumentation/shoryuken.rb +31 -0
  18. data/lib/prometheus_exporter/instrumentation/sidekiq.rb +9 -5
  19. data/lib/prometheus_exporter/instrumentation/unicorn.rb +8 -6
  20. data/lib/prometheus_exporter/instrumentation.rb +5 -0
  21. data/lib/prometheus_exporter/metric/base.rb +8 -0
  22. data/lib/prometheus_exporter/metric/counter.rb +9 -1
  23. data/lib/prometheus_exporter/metric/gauge.rb +9 -1
  24. data/lib/prometheus_exporter/metric/histogram.rb +14 -0
  25. data/lib/prometheus_exporter/metric/summary.rb +15 -1
  26. data/lib/prometheus_exporter/metric.rb +2 -0
  27. data/lib/prometheus_exporter/server/active_record_collector.rb +56 -0
  28. data/lib/prometheus_exporter/server/collector.rb +9 -2
  29. data/lib/prometheus_exporter/server/collector_base.rb +2 -0
  30. data/lib/prometheus_exporter/server/delayed_job_collector.rb +14 -1
  31. data/lib/prometheus_exporter/server/hutch_collector.rb +2 -0
  32. data/lib/prometheus_exporter/server/process_collector.rb +1 -0
  33. data/lib/prometheus_exporter/server/puma_collector.rb +11 -1
  34. data/lib/prometheus_exporter/server/runner.rb +8 -30
  35. data/lib/prometheus_exporter/server/shoryuken_collector.rb +59 -0
  36. data/lib/prometheus_exporter/server/sidekiq_collector.rb +2 -0
  37. data/lib/prometheus_exporter/server/type_collector.rb +2 -0
  38. data/lib/prometheus_exporter/server/unicorn_collector.rb +8 -1
  39. data/lib/prometheus_exporter/server/web_server.rb +2 -1
  40. data/lib/prometheus_exporter/server.rb +4 -0
  41. data/lib/prometheus_exporter/version.rb +3 -1
  42. data/lib/prometheus_exporter.rb +14 -0
  43. data/prometheus_exporter.gemspec +17 -13
  44. metadata +38 -6
  45. data/.travis +0 -9
metadata CHANGED
@@ -1,27 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prometheus_exporter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.9
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Saffron
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-11 00:00:00.000000000 Z
11
+ date: 2020-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rubocop
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0.69'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0.69'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: bundler
15
29
  requirement: !ruby/object:Gem::Requirement
16
30
  requirements:
17
- - - "~>"
31
+ - - ">"
18
32
  - !ruby/object:Gem::Version
19
33
  version: '1.16'
20
34
  type: :development
21
35
  prerelease: false
22
36
  version_requirements: !ruby/object:Gem::Requirement
23
37
  requirements:
24
- - - "~>"
38
+ - - ">"
25
39
  - !ruby/object:Gem::Version
26
40
  version: '1.16'
27
41
  - !ruby/object:Gem::Dependency
@@ -136,6 +150,20 @@ dependencies:
136
150
  - - "~>"
137
151
  - !ruby/object:Gem::Version
138
152
  version: '0.6'
153
+ - !ruby/object:Gem::Dependency
154
+ name: rubocop-discourse
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '1.0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '1.0'
139
167
  description: Prometheus metric collector and exporter for Ruby
140
168
  email:
141
169
  - sam.saffron@gmail.com
@@ -146,7 +174,6 @@ extra_rdoc_files: []
146
174
  files:
147
175
  - ".gitignore"
148
176
  - ".rubocop.yml"
149
- - ".travis"
150
177
  - ".travis.yml"
151
178
  - CHANGELOG
152
179
  - CODE_OF_CONDUCT.md
@@ -161,11 +188,13 @@ files:
161
188
  - lib/prometheus_exporter.rb
162
189
  - lib/prometheus_exporter/client.rb
163
190
  - lib/prometheus_exporter/instrumentation.rb
191
+ - lib/prometheus_exporter/instrumentation/active_record.rb
164
192
  - lib/prometheus_exporter/instrumentation/delayed_job.rb
165
193
  - lib/prometheus_exporter/instrumentation/hutch.rb
166
194
  - lib/prometheus_exporter/instrumentation/method_profiler.rb
167
195
  - lib/prometheus_exporter/instrumentation/process.rb
168
196
  - lib/prometheus_exporter/instrumentation/puma.rb
197
+ - lib/prometheus_exporter/instrumentation/shoryuken.rb
169
198
  - lib/prometheus_exporter/instrumentation/sidekiq.rb
170
199
  - lib/prometheus_exporter/instrumentation/unicorn.rb
171
200
  - lib/prometheus_exporter/metric.rb
@@ -176,6 +205,7 @@ files:
176
205
  - lib/prometheus_exporter/metric/summary.rb
177
206
  - lib/prometheus_exporter/middleware.rb
178
207
  - lib/prometheus_exporter/server.rb
208
+ - lib/prometheus_exporter/server/active_record_collector.rb
179
209
  - lib/prometheus_exporter/server/collector.rb
180
210
  - lib/prometheus_exporter/server/collector_base.rb
181
211
  - lib/prometheus_exporter/server/delayed_job_collector.rb
@@ -183,6 +213,7 @@ files:
183
213
  - lib/prometheus_exporter/server/process_collector.rb
184
214
  - lib/prometheus_exporter/server/puma_collector.rb
185
215
  - lib/prometheus_exporter/server/runner.rb
216
+ - lib/prometheus_exporter/server/shoryuken_collector.rb
186
217
  - lib/prometheus_exporter/server/sidekiq_collector.rb
187
218
  - lib/prometheus_exporter/server/type_collector.rb
188
219
  - lib/prometheus_exporter/server/unicorn_collector.rb
@@ -194,7 +225,8 @@ homepage: https://github.com/discourse/prometheus_exporter
194
225
  licenses:
195
226
  - MIT
196
227
  metadata: {}
197
- post_install_message:
228
+ post_install_message: prometheus_exporter will only bind to localhost by default as
229
+ of v0.5
198
230
  rdoc_options: []
199
231
  require_paths:
200
232
  - lib
data/.travis DELETED
@@ -1,9 +0,0 @@
1
- sudo: false
2
- dist: trusty
3
- language: ruby
4
- rvm:
5
- - 2.3
6
- - 2.4
7
- - 2.5
8
- - 2.6
9
- - jruby