We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f03588 commit 1008621Copy full SHA for 1008621
bin/collector
@@ -3,12 +3,14 @@
3
4
Process.setproctitle("discourse prometheus-collector")
5
6
-["prometheus_exporter-#{ENV["PROMETHEUS_EXPORTER_VERSION"]}"].each do |spec_name|
7
- spec_file =
8
- File.expand_path("../../gems/#{RUBY_VERSION}/specifications/#{spec_name}.gemspec", __FILE__)
9
- spec = Gem::Specification.load(spec_file)
10
- spec.activate
11
-end
+spec_file =
+ File.expand_path(
+ "../../gems/#{RUBY_VERSION}/specifications/#{"prometheus_exporter-#{ENV["PROMETHEUS_EXPORTER_VERSION"]}"}.gemspec",
+ __FILE__,
+ )
+
12
+spec = Gem::Specification.load(spec_file)
13
+spec.activate
14
15
require "oj"
16
require "prometheus_exporter"
0 commit comments