riemann-mysql 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/bin/riemann-mysql +8 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MWZiODdhYmM3MTI1Zjg0YWRkYmFiZTRhYjhiOWIwODM1YjhmZmRlMg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZTJjZWMzYTUyYWQ1OTQyZDM4MjY2NmUzZDU0MDA4ZTJhNWM1N2M1Yg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZTQxOTg1MDZjZTc4ZGQxZmEwZDIzYTk2Njc3ODNhMzQ0MzVkOTJlMThiOGEy
|
10
|
+
YTZjNzU5YmRjMDA4NmU5Y2IyNTVkNzAxYTlkMGFhODgyODQ1NWIwYjYyNzc5
|
11
|
+
YWU0ZWFiOGUzNmU4NTQ2ZmJlMzViMzQ4Y2I4NjllM2FhYmI5OTQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
N2Y3NGYyMWFiYjk2Zjc0ZTRiM2QwYWJiYzU2MjY2M2FlYjFiMTJiYzBmMDFm
|
14
|
+
ZmJjMDkyMzU3Y2UwNmJiNTEzYmE4NTUwZjZjMDIwOTRkNzI1NTgxYTU0MmYx
|
15
|
+
YWFjNGYxZWRkNDEwMGJhNTU5YzhkY2MwZGYzZDJlMzk2Y2Y0Yjk=
|
data/bin/riemann-mysql
CHANGED
@@ -12,6 +12,7 @@ class Riemann::Tools::Mysql
|
|
12
12
|
opt :mysql_port, "MySQL port", :default => 3306
|
13
13
|
opt :mysql_username, "MySQL username", :default => ''
|
14
14
|
opt :mysql_password, "MySQL password", :default => ''
|
15
|
+
opt :global_status, "Queries the status values for all connections to MySQL", :default => false
|
15
16
|
|
16
17
|
def initialize
|
17
18
|
options = { :host => opts[:mysql_host],
|
@@ -23,8 +24,13 @@ class Riemann::Tools::Mysql
|
|
23
24
|
end
|
24
25
|
|
25
26
|
def tick
|
27
|
+
if opts[:global_status] == true
|
28
|
+
query = "SHOW GLOBAL STATUS;"
|
29
|
+
else
|
30
|
+
query = "SHOW STATUS;"
|
31
|
+
end
|
26
32
|
begin
|
27
|
-
@mysql.query(
|
33
|
+
@mysql.query(query).each do |var|
|
28
34
|
data = {
|
29
35
|
:host => opts[:mysql_host],
|
30
36
|
:service => "mysql #{var["Variable_name"]}",
|
@@ -39,3 +45,4 @@ class Riemann::Tools::Mysql
|
|
39
45
|
end
|
40
46
|
|
41
47
|
Riemann::Tools::Mysql.run
|
48
|
+
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: riemann-mysql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fede Borgnia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: riemann-tools
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ! '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.2.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ! '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.2.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: mysql2
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -45,9 +45,9 @@ executables:
|
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
|
-
- bin/riemann-mysql
|
49
48
|
- LICENSE
|
50
49
|
- README.md
|
50
|
+
- bin/riemann-mysql
|
51
51
|
homepage: https://github.com/riemann/riemann-mysql
|
52
52
|
licenses: []
|
53
53
|
metadata: {}
|
@@ -67,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
67
67
|
version: '0'
|
68
68
|
requirements: []
|
69
69
|
rubyforge_project: riemann-mysql
|
70
|
-
rubygems_version: 2.
|
70
|
+
rubygems_version: 2.2.2
|
71
71
|
signing_key:
|
72
72
|
specification_version: 4
|
73
73
|
summary: MySQL client that submit events to Riemann.
|