embulk-input-prometheus 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/embulk-input-prometheus.gemspec +1 -1
- data/lib/embulk/input/prometheus.rb +6 -5
- 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: be09173710385fe48d93ce3b59acbed0d266ba84975a2a2d7207b2ea2d9b5aae
|
4
|
+
data.tar.gz: e8e63ff9e87b1b6ac0c0722141fa107d99128f1440d2e3f76972131f44d911e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea4ef787a39298ebd84fbea832b57687180ada0bb6b5c4d4e6810e2d58771f36bf60b6811d7be373fcd15a4362f0ce79bbd52213883b3f8834790e9e17f6b2c2
|
7
|
+
data.tar.gz: b9aa3c25bbf83a4594ef2607c77e36ae726cbdc3a8237f4bd820533ee36d8150c7a8f0430f5a1f6d297fd0655a76a7f903c678e62f89d8c9587e82b5c536a4b3
|
data/.gitignore
CHANGED
@@ -23,7 +23,7 @@ module Embulk
|
|
23
23
|
|
24
24
|
columns = [
|
25
25
|
Column.new(0, "name", :string),
|
26
|
-
Column.new(1, "time", :
|
26
|
+
Column.new(1, "time", :long),
|
27
27
|
Column.new(2, "value", :double),
|
28
28
|
]
|
29
29
|
|
@@ -45,10 +45,11 @@ module Embulk
|
|
45
45
|
credentials: {},
|
46
46
|
}
|
47
47
|
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
48
|
+
if task["tls"]
|
49
|
+
params[:ssl][:client_cert] = OpenSSL::X509::Certificate.new(File.read(task["tls"]["cert_path"])) if task["tls"]["cert_path"]
|
50
|
+
params[:ssl][:client_key] = OpenSSL::PKey::RSA.new(File.read(task["tls"]["key_path"])) if task["tls"]["key_path"]
|
51
|
+
params[:ssl][:ca_file] = task["tls"]["ca_path"] if task["tls"]["ca_path"]
|
52
|
+
end
|
52
53
|
params[:credentials][:token] = task["token"] if task["token"]
|
53
54
|
|
54
55
|
%w(
|