mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
Merge pull request #583 from divanikus/master
Add slope and metric group for ganglia output.
This commit is contained in:
commit
a732b06c20
1 changed files with 10 additions and 2 deletions
|
@ -35,6 +35,12 @@ class LogStash::Outputs::Ganglia < LogStash::Outputs::Base
|
|||
# Lifetime in seconds of this metric
|
||||
config :lifetime, :validate => :number, :default => 300
|
||||
|
||||
# Metric group
|
||||
config :group, :validate => :string, :default => ""
|
||||
|
||||
# Metric slope, represents metric behavior
|
||||
config :slope, :validate => %w{zero positive negative both unspecified}, :default => "both"
|
||||
|
||||
def register
|
||||
require "gmetric"
|
||||
end # def register
|
||||
|
@ -59,8 +65,10 @@ class LogStash::Outputs::Ganglia < LogStash::Outputs::Base
|
|||
:units => @units,
|
||||
:type => @metric_type,
|
||||
:value => localvalue,
|
||||
:tmax => @tmax,
|
||||
:dmax => @dmax
|
||||
:group => @group,
|
||||
:slope => @slope,
|
||||
:tmax => @max_interval,
|
||||
:dmax => @lifetime
|
||||
})
|
||||
end # def receive
|
||||
end # class LogStash::Outputs::Ganglia
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue