On Wednesday, September 14, 2016 at 12:41:16 PM UTC+3, Marcel Weinberg wrote:
> Hi,
> 
> 
>  
> 
> 
> the procstat plugin works fine as long as I run telegraf with the root user 
> who is allowed to read the files in /proc/<pid>/fd. The user telegraf does 
> not have the required privileges.
> 
> 
>  
> 
> 
> How do you handle this? Of course, we can run telegraf with user root but we 
> would like to avoid that. Do you have any other smart solution?
> 
> 
>  
> 
> 
> 
> 
> Best regards,
> 
> 
> Marcel

Hi Marcel,

Telegraf uses some functionality from this utility to pull pid information: 
https://github.com/shirou/gopsutil/tree/master/process

The stats that Telegraf pulls from the /proc filesystem are generated from 
files under /proc/<pid>/ which by default have read permissions for user, group 
and others. Thus, Telegraf's procstat plugin should work well when executed as 
the telegraf user.

/proc/<pid>/fd has stricter permissions but I don't think Telegraf pulls 
information from that directory.

-- 
Remember to include the InfluxDB version number with all issue reports
--- 
You received this message because you are subscribed to the Google Groups 
"InfluxDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/influxdb/f4d56e65-f71a-4e0c-a0f0-de1daa2cd505%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to