Update procstat doc

This commit is contained in:
Cameron Sparr 2016-01-15 15:55:41 -07:00
parent 1421bce371
commit 40a5bad968
1 changed files with 7 additions and 13 deletions

View File

@ -16,25 +16,19 @@ individual process specific measurements.
Example: Example:
``` ```
[procstat] [[inputs.procstat]]
[[procstat.specifications]]
exe = "influxd" exe = "influxd"
prefix = "influxd" prefix = "influxd"
[[procstat.specifications]] [[inputs.procstat]]
pid_file = "/var/run/lxc/dnsmasq.pid" pid_file = "/var/run/lxc/dnsmasq.pid"
``` ```
The above configuration would result in output like: The above configuration would result in output like:
``` ```
[...] > procstat,name="dnsmasq",pid="44979" cpu_user=0.14,cpu_system=0.07
> [name="dnsmasq" pid="44979"] procstat_cpu_user value=0.14 > procstat,name="influxd",pid="34337" influxd_cpu_user=25.43,influxd_cpu_system=21.82
> [name="dnsmasq" pid="44979"] procstat_cpu_system value=0.07
[...]
> [name="influxd" pid="34337"] procstat_influxd_cpu_user value=25.43
> [name="influxd" pid="34337"] procstat_influxd_cpu_system value=21.82
``` ```
# Measurements # Measurements