kurchatov 0.2.7 → 0.2.8
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 +4 -4
- data/app/Gemfile +1 -1
- data/examples/la.rb +2 -2
- data/lib/kurchatov/mixin/event.rb +4 -2
- data/lib/kurchatov/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 79724a8222b08a49dee9d0e2f0f23c7984dbb9e6
|
|
4
|
+
data.tar.gz: 98875b3603fcbf13de495e595d9179b4265027cb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5a08b2003267e8c1b952dfd7a4e7bd407028d5198b16f686aa39d82e93a177f137ddabdeec7becce79448fa97cffb7d05857a5eaa55bae7b29f6d12888927b36
|
|
7
|
+
data.tar.gz: 13ec4879001ae7bd9d1f2c2608dd014a54f9b01a7b34668591bbb9bcc20da51dd6b6404698dc546682b208604a8248211fa84a0ccacf6e536af29f6a9c937263
|
data/app/Gemfile
CHANGED
data/examples/la.rb
CHANGED
|
@@ -11,7 +11,7 @@ collect :os => "linux" do
|
|
|
11
11
|
:service => 'la la_1',
|
|
12
12
|
:warning => plugin.warning || plugin.cpu * 2,
|
|
13
13
|
:critical => plugin.critical || plugin.cpu * 4,
|
|
14
|
-
:
|
|
15
|
-
:
|
|
14
|
+
:opentsdb_service => "sys.la.one_min",
|
|
15
|
+
:opentsdb_tags => {"host" => ohai[:fqdn]}
|
|
16
16
|
)
|
|
17
17
|
end
|
|
@@ -33,7 +33,7 @@ module Kurchatov
|
|
|
33
33
|
set_bool_state(hash)
|
|
34
34
|
set_avg_metric(hash)
|
|
35
35
|
set_event_state(hash)
|
|
36
|
-
|
|
36
|
+
set_tsdb(hash)
|
|
37
37
|
|
|
38
38
|
return false if hash[:miss]
|
|
39
39
|
|
|
@@ -105,7 +105,9 @@ module Kurchatov
|
|
|
105
105
|
|
|
106
106
|
end
|
|
107
107
|
|
|
108
|
-
def
|
|
108
|
+
def set_tsdb(hash = {})
|
|
109
|
+
hash[:tsdb_tags] = hash[:opentsdb_tags] if hash[:opentsdb_tags]
|
|
110
|
+
hash[:tsdb_service] = hash[:opentsdb_service] if hash[:opentsdb_service]
|
|
109
111
|
hash[:tsdb_tags] ||= {}
|
|
110
112
|
hash[:tsdb_tags] = hash[:tsdb_tags].map {|k,v| "#{k}=#{v}" }
|
|
111
113
|
hash[:tsdb_tags] << "host=#{Kurchatov::Config[:host]}"
|
data/lib/kurchatov/version.rb
CHANGED