riemann-tools 0.2.10 → 0.2.11
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/README.markdown +1 -0
- data/bin/riemann-health +1 -18
- data/bin/riemann-kvminstance +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 379e84d65f11764bb686f8e6f0e30de4d781aba2
|
|
4
|
+
data.tar.gz: 471fa6319632b5d50a5a353a817049cd2637fbe6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a514901352bad1d586732b665f03de228d05eb5540dbfbd78bea7c558f523dc17f7f7a5f8d6b21930367d23eb70d288d443a9c964395c130194422bc32ac9ee2
|
|
7
|
+
data.tar.gz: 49fffcc4b0712fe5ac27e92ccf36278d09c85c31cc7004975514d49f9fcd4ba23c233a5e1268cd741712f9bf0e5b6268723672c446b6a710e1958f96fa45e7f3
|
data/README.markdown
CHANGED
|
@@ -63,6 +63,7 @@ To install the AWS tools.
|
|
|
63
63
|
* riemann-marathon - Monitor Marathon.
|
|
64
64
|
* riemann-munin - Monitor Munin.
|
|
65
65
|
* riemann-riak - Monitor Riak.
|
|
66
|
+
* riemann-chronos - Monitor Chronos.
|
|
66
67
|
|
|
67
68
|
There are also a number of additional, stand-alone tools, contained in
|
|
68
69
|
the [Riemann GitHub account](https://github.com/riemann/).
|
data/bin/riemann-health
CHANGED
|
@@ -39,7 +39,7 @@ class Riemann::Tools::Health
|
|
|
39
39
|
@load = method :freebsd_load
|
|
40
40
|
@memory = method :freebsd_memory
|
|
41
41
|
else
|
|
42
|
-
@cores =
|
|
42
|
+
@cores = `nproc`.to_i
|
|
43
43
|
puts "WARNING: OS '#{@ostype}' not explicitly supported. Falling back to Linux" unless @ostype == "linux"
|
|
44
44
|
@cpu = method :linux_cpu
|
|
45
45
|
@disk = method :disk
|
|
@@ -70,23 +70,6 @@ class Riemann::Tools::Health
|
|
|
70
70
|
)
|
|
71
71
|
end
|
|
72
72
|
|
|
73
|
-
def cores
|
|
74
|
-
i = 0;
|
|
75
|
-
File.read("/proc/cpuinfo").split(/\n\n/).inject({}) do |cores, p|
|
|
76
|
-
physical_id = p[/physical id\s+:\s+(\d+)/, 1]
|
|
77
|
-
core_id = p[/core id\s+:\s+(\d+)/, 1]
|
|
78
|
-
if physical_id and core_id
|
|
79
|
-
cores["#{physical_id}:#{core_id}"] = true
|
|
80
|
-
elsif physical_id
|
|
81
|
-
cores["#{physical_id}:"] = true
|
|
82
|
-
else
|
|
83
|
-
cores[i += 1] = true;
|
|
84
|
-
end
|
|
85
|
-
|
|
86
|
-
cores
|
|
87
|
-
end.size
|
|
88
|
-
end
|
|
89
|
-
|
|
90
73
|
def report_pct(service, fraction, report)
|
|
91
74
|
if fraction
|
|
92
75
|
if fraction > @limits[service][:critical]
|
data/bin/riemann-kvminstance
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: riemann-tools
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kyle Kingsbury
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-12-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: riemann-client
|