Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Updates #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion graphital.conf.eg → graphital.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Your graphite host
$HOST = 'graphite.vvmedia.com'
$HOST = '127.0.0.1'

# Graphite port
$PORT = 2003
Expand Down
12 changes: 6 additions & 6 deletions graphital.d/memory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@

descriptions = free[0].split(/\s+/).collect(&:strip)
mem = free[1].split(/\s+/).collect(&:strip)
swap = free[3].split(/\s+/).collect(&:strip)
#swap = free[3].split(/\s+/).collect(&:strip)
buffers = free[2].split(/\s+/).collect(&:strip)

descriptions.shift
mem.shift
swap.shift
#swap.shift
buffers.shift
buffers.shift

Expand All @@ -22,7 +22,7 @@
descriptions.pop
end

swap = swap.zip(descriptions)
#swap = swap.zip(descriptions)

descriptions.shift

Expand All @@ -36,6 +36,6 @@
puts "cache.#{description} #{metric}"
end

swap.each do |metric,description|
puts "swap.#{description} #{metric}"
end
#swap.each do |metric,description|
# puts "swap.#{description} #{metric}"
#end