telegraf/plugins/inputs/system
Steve Domino 7b73b0db3a Moved system package inputs out to top level (#4406) 2018-07-11 16:43:49 -07:00
..
README.md Moved system package inputs out to top level (#4406) 2018-07-11 16:43:49 -07:00
mock_PS.go Moved system package inputs out to top level (#4406) 2018-07-11 16:43:49 -07:00
ps.go Moved system package inputs out to top level (#4406) 2018-07-11 16:43:49 -07:00
system.go Use same timestamp for fields in system input (#4078) 2018-04-27 14:55:10 -07:00

README.md

System Input Plugin

The system plugin gathers general stats on system load, uptime, and number of users logged in. It is similar to the unix uptime command.

Configuration:

# Read metrics about system load & uptime
[[inputs.system]]
  # no configuration

Permissions:

The n_users field requires read access to /var/run/utmp, and may require the telegraf user to be added to the utmp group on some systems.

Metrics:

  • system
    • fields:
      • load1 (float)
      • load15 (float)
      • load5 (float)
      • n_users (integer)
      • n_cpus (integer)
      • uptime (integer, seconds)
      • uptime_format (string)

Example Output:

system,host=tyrion load1=3.72,load5=2.4,load15=2.1,n_users=3i,n_cpus=4i 1483964144000000000
system,host=tyrion uptime=1249632i 1483964144000000000
system,host=tyrion uptime_format="14 days, 11:07" 1483964144000000000