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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 170ee87debf53972d5a8d689c8e4b03e3e13717f9a4a488bd9933878c0ea1dc2
4
- data.tar.gz: 0ee4dd4d3394701e2a2bb4d7e1980bd475998ed41d4018870f2a6a0ecb6a0532
3
+ metadata.gz: be09173710385fe48d93ce3b59acbed0d266ba84975a2a2d7207b2ea2d9b5aae
4
+ data.tar.gz: e8e63ff9e87b1b6ac0c0722141fa107d99128f1440d2e3f76972131f44d911e7
5
5
  SHA512:
6
- metadata.gz: 07d093c170fa64feb26631d015634733309f7ead915401824b53de5bb1723eb09dc17783631b1fa97dd727f5c0abe690f98345a50ad1c0c24aa08eea853738dc
7
- data.tar.gz: c75e3d61b4280d3e993297e2b4846df3006d4b58804194a4f51bc6386a0900e529be2ae564b4233ee692d5b575e43f2514d3f9b7ebe8c4226b9e74be8b886101
6
+ metadata.gz: ea4ef787a39298ebd84fbea832b57687180ada0bb6b5c4d4e6810e2d58771f36bf60b6811d7be373fcd15a4362f0ce79bbd52213883b3f8834790e9e17f6b2c2
7
+ data.tar.gz: b9aa3c25bbf83a4594ef2607c77e36ae726cbdc3a8237f4bd820533ee36d8150c7a8f0430f5a1f6d297fd0655a76a7f903c678e62f89d8c9587e82b5c536a4b3
data/.gitignore CHANGED
@@ -3,3 +3,4 @@
3
3
  /tmp/
4
4
  /.bundle/
5
5
  /Gemfile.lock
6
+ config.yml
@@ -1,7 +1,7 @@
1
1
 
2
2
  Gem::Specification.new do |spec|
3
3
  spec.name = "embulk-input-prometheus"
4
- spec.version = "0.1.0"
4
+ spec.version = "0.2.0"
5
5
  spec.authors = ["pyama86"]
6
6
  spec.summary = "Prometheus input plugin for Embulk"
7
7
  spec.description = "Loads records from Prometheus."
@@ -23,7 +23,7 @@ module Embulk
23
23
 
24
24
  columns = [
25
25
  Column.new(0, "name", :string),
26
- Column.new(1, "time", :double),
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
- params[:ssl][:client_cert] = OpenSSL::X509::Certificate.new(File.read(task["tls"]["cert_path"])) if task["tls"]["cert_path"]
49
- params[:ssl][:client_key] = OpenSSL::PKey::RSA.new(File.read(task["tls"]["key_path"])) if task["tls"]["key_path"]
50
- params[:ssl][:ca_file] = task["tls"]["ca_path"] if task["tls"]["ca_path"]
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(
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-input-prometheus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - pyama86