prometheus_exporter 0.1.10 → 0.1.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/prometheus_exporter +2 -2
- data/lib/prometheus_exporter/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f8cdad15069a123e796605403a905e67ba6b0310961fecf5e9eb0a96d3f1d9e
|
4
|
+
data.tar.gz: 2b5c3584a871a670dbbb2166e801de402a279164261281a3693769bef705fe37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee0180cc0497889ca30f6f9920be065a35cbad7553a6ceddbfbb3647c8fc9e92f9a61b72973671232e07f5326b182460bd7e841c02f4e82cf73e311d451e7903
|
7
|
+
data.tar.gz: 0607ff6aca87265054f28f0a187186bfd55472a8271a7184c81ef82ee4f3febabde16ca354e634a953c31c5d989befb0ed5adaf5e95ed4e68bb7b1ad85d3c7f6
|
data/bin/prometheus_exporter
CHANGED
@@ -38,7 +38,7 @@ def run
|
|
38
38
|
PrometheusExporter::Metric::Base.default_prefix = prefix
|
39
39
|
|
40
40
|
if collector_filename
|
41
|
-
eval File.read(collector_filename)
|
41
|
+
eval File.read(collector_filename), nil, File.expand_path(collector_filename)
|
42
42
|
|
43
43
|
found = false
|
44
44
|
|
@@ -60,7 +60,7 @@ def run
|
|
60
60
|
|
61
61
|
if type_collectors.length > 0
|
62
62
|
type_collectors.each do |t|
|
63
|
-
eval File.read(t)
|
63
|
+
eval File.read(t), nil, File.expand_path(t)
|
64
64
|
end
|
65
65
|
|
66
66
|
ObjectSpace.each_object(Class) do |klass|
|