class CollectDAction

Defined in:

collectd_action.cr

Constant Summary

PRIV_TOKEN = ENV["CL_PRIV_TOKEN"]? || ""
PRIV_TOKEN_SIZE = PRIV_TOKEN.size + 1
SUPPORTED_TAGS = {"cpu-total" => ["cpu.usage_idle"], "aggregation-cpu-average" => ["cpu-idle"], "load" => ["load"], "memory_usage" => ["percentage"], "disk_usage" => ["percentage"], "memory" => ["memory-used", "memory-buffered", "memory-cached", "memory-free"], "df-root" => ["percent_bytes-free", "percent_bytes-reserved"]}

Constructors

Instance Method Summary

Constructor Detail

def self.new(file_root : String, debug : Bool) #

[View source]

Instance Method Detail

def process(data : CollectDData | Nil) #

[View source]