How to capture PIDs using telegraf and dump data into InfluxDB

influxdb
telegraf
#1

Dear experts,
I’m using Grafana, InfluxDB and collecting data using agent “telegraf”. I’m getting all infra related data like CPU, memory, Disk and all. But how can we get data till process ID / name level like at particular time which process name / ID was consuming my resources.

#2

Would proc stat work for you? https://github.com/influxdata/telegraf/tree/master/plugins/inputs/procstat

That should get the PID

2 Likes
#3

Thanks @philb. I’m very new to this. Need additional below information.
How to use this plugin further? Do I just need to copy the configuration codes from Procstat Input Plugin and append in Telegraf.conf file? Or need to deploy this complete file anywhere?

Thanks in advance.

#4

@amritanshkr you just need to set the configuration details in your telegraf.conf file!

2 Likes
#5

@noahcrowley thanks. Let me try that and update.