kurchatov 0.2.8 → 0.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 79724a8222b08a49dee9d0e2f0f23c7984dbb9e6
4
- data.tar.gz: 98875b3603fcbf13de495e595d9179b4265027cb
3
+ metadata.gz: 247abfa52a37d8051801052016ef346544c09f10
4
+ data.tar.gz: 9f97e862d7883ecdc041828ea1ea4616b07e1490
5
5
  SHA512:
6
- metadata.gz: 5a08b2003267e8c1b952dfd7a4e7bd407028d5198b16f686aa39d82e93a177f137ddabdeec7becce79448fa97cffb7d05857a5eaa55bae7b29f6d12888927b36
7
- data.tar.gz: 13ec4879001ae7bd9d1f2c2608dd014a54f9b01a7b34668591bbb9bcc20da51dd6b6404698dc546682b208604a8248211fa84a0ccacf6e536af29f6a9c937263
6
+ metadata.gz: 8cd099c85c04b12005ac992c4c899da6fcffebb27d4d745a6f7a802eb6239097361e6076c36b2d855c42bdeab21fe3414eab284079327facaea98fb8e96f2f6e
7
+ data.tar.gz: b4e3961ba06d675e6216107aee355bf4133face543d7c73ec76e630b107d0b600eda51a7a4bedf337144e3cc429f62be3d79bbdbde4fce6c4460f407f39ca6db
data/app/Gemfile.lock CHANGED
@@ -11,7 +11,7 @@ GEM
11
11
  file-tail (1.0.12)
12
12
  tins (~> 0.5)
13
13
  ipaddress (0.8.0)
14
- kurchatov (0.2.6)
14
+ kurchatov (0.2.8)
15
15
  beefcake (>= 0.3.5)
16
16
  ohai (~> 6.20.0)
17
17
  mixlib-cli (1.5.0)
@@ -44,7 +44,7 @@ DEPENDENCIES
44
44
  addressable
45
45
  ffi-rzmq
46
46
  file-tail
47
- kurchatov (= 0.2.6)
47
+ kurchatov (= 0.2.8)
48
48
  net-ntp
49
49
  net-ping
50
50
  parallel
data/debian/changelog CHANGED
@@ -1,3 +1,9 @@
1
+ riemann-client (1:0.2.8) stable; urgency=low
2
+
3
+ * TSDB: opentsdb and tsdb
4
+
5
+ -- Undev DevOps Team <devops@undev.ru> Wed, 20 Aug 2014 10:08:20 +0000
6
+
1
7
  riemann-client (1:0.2.7) stable; urgency=low
2
8
 
3
9
  * TSDB support
@@ -76,6 +76,12 @@ module Kurchatov
76
76
  :description => 'Set tags for events',
77
77
  :proc => lambda { |l| l.split(',') }
78
78
 
79
+ option :tsdb_tags,
80
+ :short => '-T key1=value,key2=value',
81
+ :long => '--tsdb-tags key1=value,key2=value',
82
+ :description => 'Set opentsdb tags for events',
83
+ :proc => lambda { |l| l.split(',').inject({}) {|mem,x| k,v=x.split('='); mem[k] = v; mem} }
84
+
79
85
  option :riemann_responder,
80
86
  :short => '-H HOST1,HOST2:55655',
81
87
  :long => '--hosts HOST1,HOST2:55655',
@@ -109,6 +109,7 @@ module Kurchatov
109
109
  hash[:tsdb_tags] = hash[:opentsdb_tags] if hash[:opentsdb_tags]
110
110
  hash[:tsdb_service] = hash[:opentsdb_service] if hash[:opentsdb_service]
111
111
  hash[:tsdb_tags] ||= {}
112
+ hash[:tsdb_tags].merge!(Kurchatov::Config[:tsdb_tags])
112
113
  hash[:tsdb_tags] = hash[:tsdb_tags].map {|k,v| "#{k}=#{v}" }
113
114
  hash[:tsdb_tags] << "host=#{Kurchatov::Config[:host]}"
114
115
  hash[:tsdb_tags].uniq!
@@ -1,3 +1,3 @@
1
1
  module Kurchatov
2
- VERSION = "0.2.8"
2
+ VERSION = "0.2.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kurchatov
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vasiliev Dmitry