El jueves, 29 de septiembre de 2016, 12:00:02 (UTC-4), Konstantinos Botsas escribió: > Hi Jadolfo, > > > Glad to hear that this can solve your issue, probably for other users as well. > > I have created a related GH issue to implement this functionality in > Telegraf: https://github.com/influxdata/telegraf/issues/1828 > > > > On Thu, Sep 29, 2016 at 6:46 PM, <[email protected]> wrote: > > 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. > > > > > > Hi, thanks for answer. I test pgrep using the '-x' argunment and it is all I > need, using 'pgrep -f -x [pattern of cmd]' only return my process, and > becausing of the '-x' will only match with my node process. > > > > So if telegraf can support this flags, it would be awesome. > > > > I can try others regular expressions for now. > > > > Thanks. > > > > > -- > > > > > Konstantinos Botsas > > Support Engineer > > InfluxData
Thanks to you Konstantinos, I followed your suggestion and I'm now using a more restrictive regular expression, It still exists a possibility that match with some diferrent process that my node but i think it's minimun. I'm still thinking that adding support for '-x' flag it would be a improvement for telegraf. Thanks a lot. -- 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/f1982960-90eb-42b1-a697-8c47fb36b301%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
