Skip to content

Instantly share code, notes, and snippets.

@rishid
Created September 15, 2014 23:00
Show Gist options
  • Save rishid/610dcbe9beb9c78bcc19 to your computer and use it in GitHub Desktop.
Save rishid/610dcbe9beb9c78bcc19 to your computer and use it in GitHub Desktop.
[CpuStats]
type = "FilePollingInput"
ticker_interval = 5
file_path = "/proc/loadavg"
decoder = "CpuStatsDecoder"
[CpuStatsDecoder]
type = "SandboxDecoder"
filename = "lua_decoders/linux_cpustats.lua"
[CpuStatsFilter]
type = "StatFilter"
message_matcher = "Type == 'stats.cpustats'"
[CpuStatsFilter.Metric.1MinAvg]
type = "Gauge"
name = "loadavg.01"
value = "%1MinAvg%"
[CpuStatsFilter.Metric.5MinAvg]
type = "Gauge"
name = "loadavg.05"
value = "%5MinAvg%"
[CpuStatsFilter.Metric.15MinAvg]
type = "Gauge"
name = "loadavg.15"
value = "%15MinAvg%"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment