Created
September 15, 2014 23:00
-
-
Save rishid/610dcbe9beb9c78bcc19 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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