nephelae 0.0.8 → 0.0.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.
@@ -12,7 +12,7 @@ module Nephelae
12
12
  end
13
13
 
14
14
  def get_metrics
15
- metrics = Metrics.new('System/Linux')
15
+ metrics = Metrics.new('Nephelae/Linux')
16
16
  output = `#{command}`
17
17
  stats = output.split(/\n/).last.split(/\s+/)
18
18
 
@@ -10,7 +10,7 @@ module Nephelae
10
10
  end
11
11
 
12
12
  def get_metrics
13
- metrics = Metrics.new('System/Linux')
13
+ metrics = Metrics.new('Nephelae/Linux')
14
14
  output = `#{command}`
15
15
 
16
16
  if $?.success?
@@ -34,10 +34,10 @@ module Nephelae
34
34
  metrics.append_metric('SwapFree', stats[:swap_free], {unit: 'Kilobytes'})
35
35
  swap_used = stats[:swap_total] - stats[:swap_free]
36
36
 
37
- metrics.append_metric('SwapUsed', stats[:swap_used], {unit: 'Kilobytes'})
37
+ metrics.append_metric('SwapUsed', swap_used, {unit: 'Kilobytes'})
38
38
 
39
39
  unless stats[:swap_total] == 0
40
- swap_used_percent = (stats[:swap_used].to_f / stats[:swap_total].to_f * 100).to_i
40
+ swap_used_percent = (swap_used.to_f / stats[:swap_total].to_f * 100).to_i
41
41
  metrics.append_metric('SwapUsedPercentage', swap_used_percent, {unit: 'Percent'})
42
42
  end
43
43
  end
@@ -6,7 +6,7 @@ module Nephelae
6
6
  end
7
7
 
8
8
  def get_metrics
9
- metrics = Metrics.new('Application/Nephelae')
9
+ metrics = Metrics.new('Nephelae/Process')
10
10
 
11
11
  #if we are doing this we are up
12
12
  metrics.append_metric('Up', 1)
@@ -10,7 +10,7 @@ module Nephelae
10
10
  end
11
11
 
12
12
  def get_metrics
13
- metrics = Metrics.new('Application/Passenger')
13
+ metrics = Metrics.new('Nephelae/Passenger')
14
14
  output = `#{command}`
15
15
 
16
16
  if $?.success?
@@ -10,7 +10,7 @@ module Nephelae
10
10
  end
11
11
 
12
12
  def get_metrics
13
- metrics = Metrics.new('Application/Redis')
13
+ metrics = Metrics.new('Nephelae/Redis')
14
14
  output = `#{command}`
15
15
 
16
16
  if $?.success?
@@ -1,3 +1,3 @@
1
1
  module Nephelae
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nephelae
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: