Sha256: 8af207f5cb6ddd2d32bc63bfac09cfe1a46941ec12506cbae14703388322a577
Contents?: true
Size: 509 Bytes
Versions: 5
Compression:
Stored size: 509 Bytes
Contents
require "vmstat" require_relative "../base" module AppPerfAgent module Plugin module System class Load < AppPerfAgent::Plugin::Base def call loads = Vmstat.load_average [ ["system.load.one_minute", loads.one_minute], ["system.load.five_minute", loads.five_minutes], ["system.load.fifteen_minute", loads.fifteen_minutes] ] end end end end end AppPerfAgent.logger.info "Loading Load monitoring."
Version data entries
5 entries across 5 versions & 1 rubygems