prometheus-config-builder 0.0.37 → 0.0.39

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: '085719ad0e380d22f81fec086b9c676fe6b461ff1c9c68b267c4f5cc9df5ce87'
4
- data.tar.gz: 704746b2229f14dc4227b05097e67c38ce3add5d5aa438763579c2b74590c7cd
3
+ metadata.gz: 4afb62d72eff85bf6ad281d611a0d48ae28d5c1b57e17a79ee963319eb3125cc
4
+ data.tar.gz: 88fdee96f062cb7ea2eee057608a7f5cef1ebbb8b5bd4e3fd7e234200b54e45d
5
5
  SHA512:
6
- metadata.gz: '038ed8f40b32fe0e8e382936777389946bf8b40606f9302956bea3d5b1ae136692b256c378bbda3ef79f948de490d5baa53fb5452b307d3b13efb9128568e999'
7
- data.tar.gz: 9b0a6bcd89f4a39c83446216ffc029f6b7e67447824ed7b2db05739d081273223ae906d0f4a9ff31e97e229684a06b73ee45791c2adbca34c2426c414a05dab1
6
+ metadata.gz: a1db288ac0799dc74d9fda64ea237cf3824ddd25191df03103a36f8c52bef400cfc122ade29137098920daf0299efd43a12c36e47897d91ec436aaf30b8e601a
7
+ data.tar.gz: e63fecaf600a5280e2a114b093ef92a07932eebf3bf27c9c125b9279cbe950014ae548759b338d9fcc9c1c0b47cc02f3128cb3837ee9f272f4cce387032245bc
@@ -51,7 +51,6 @@ op = OptionParser.new do |o|
51
51
  o.on('--addlog=[FILE]', 'addlog -f [FILE] Log additionally to this file') do |str|
52
52
  config[:addlog] = str
53
53
  end
54
-
55
54
  end
56
55
  op.parse!
57
56
 
@@ -63,7 +62,7 @@ abort "You need to set --prometheus-src" if !config[:prometheus_src]
63
62
  abort "You need to set --dst-dir" if !config[:dst_dir]
64
63
 
65
64
  if config[:addlog]
66
- filelog = File.open(config[:addlog], File::WRONLY | File::APPEND)
65
+ filelog = File.open(config[:addlog], 'w')
67
66
  else
68
67
  filelog = nil
69
68
  end
@@ -53,7 +53,7 @@ module PrometheusConfigBuilder
53
53
  if match = e.message.match(/mapping values are not allowed in this context at line ([0-9]+)/i)
54
54
  linenumber = match.captures[0]
55
55
  logger.error("This error is most often because your intentation is at the wrong level. Check the file #{file[:filename]} around line #{linenumber}")
56
- end
56
+ end
57
57
  raise e
58
58
  end
59
59
 
@@ -176,7 +176,7 @@ module PrometheusConfigBuilder
176
176
  ip = task.containers[0].network_interfaces[0].private_ipv_4_address
177
177
  else
178
178
  logger.warn("WARNING: Unable to obtain ipv4 address from task #{task}")
179
- return
179
+ next
180
180
  end
181
181
 
182
182
  if metrics_port
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'prometheus-config-builder'
6
- s.version = '0.0.37'
6
+ s.version = '0.0.39'
7
7
  s.date = Time.now
8
8
 
9
9
  s.summary = %q{Template based config generation}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prometheus-config-builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.37
4
+ version: 0.0.39
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juho Mäkinen juho.makinen@gmail.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-01 00:00:00.000000000 Z
11
+ date: 2023-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk