On Tuesday, September 27, 2016 at 7:07:36 PM UTC+3, [email protected] wrote: > Hi, I want to use telegraf to monitoring two node process, currently I'm > using the > procstat input plugin with a pattern. > > But telegraf wrote more data than I expected, for example when i do a query > the "process_name" shows me "node" (as i expected), but also somethings like > "postgres", "sshd", "lsb_release", "git", "pgrep", etc. > > I know the plugin actually use "pgrep -f 'pattern'", so maybe it's not a bug > of telegraf. > I mean, maybe in a moment those process have a command line that include my > pattern. > > I'm thinking how I can fix it and i tried use the "exec" argument, but I lost > the pattern (so > I can't distict my two node process) and I met with this bug: > https://github.com/influxdata/telegraf/issues/1668 > > I thinks those arguments are mutually exclusive. > > So I don't know what to do, if I can use these two arguments (exec and > pattern), I won't have any problem. > > I want to reduce the data that telegraf is writing on influxdb, make it to > only write about my node process but I need to > diffentiate them. > > What do you think?. > > Thanks.
Hi, pgrep support the "-x" argument which exactly matches the given pattern, do you think adding this as an additional option to the procstat plugin would help with your use case? As an alternative you can use regular expressions to further adjust your pattern matching. -- 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/978da851-2021-4a65-96ae-af3067c2e5ae%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
