Class: AppPerfAgent::Plugin::System::Load

Inherits:
Base
  • Object
show all
Defined in:
lib/app_perf_agent/plugin/system/load.rb

Instance Method Summary collapse

Methods inherited from Base

descendants

Instance Method Details

#callObject



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/app_perf_agent/plugin/system/load.rb', line 8

def call
  loads = Vmstat.load_average
  [
    [
      AppPerfAgent::Types::LOAD,
      "system.load.one_minute",
      "Load - One Minute",
      loads.one_minute
    ],
    [
      AppPerfAgent::Types::LOAD,
      "system.load.five_minute",
      "Load - Five Minute",
      loads.five_minutes
    ],
    [
      AppPerfAgent::Types::LOAD,
      "system.load.fifteen_minute",
      "Load - Fifteen Minute",
      loads.fifteen_minutes
    ]
  ]
end