Try:
[[inputs.netstat]]
fieldpass = ["tcp_established", "tcp_time_wait"]

See docs at:
https://github.com/influxdata/telegraf/blob/master/docs/CONFIGURATION.md

On Wed, Aug 31, 2016 at 9:58 AM 飘 <[email protected]> wrote:

>
>  hi
> I used telegraf and influxdb.
>
> I need telegraf-netstat collected data. but ,Is not I want data.
> How to eliminate the unnecessary data.
> I only need NETSTAT "tcp_established" and “tcp_time_wait”
> other data i not need. How to implement
>
> >telegraf.conf
>
> i write it.   but isn't good...
>
> # Read TCP metrics such as established, time wait and sockets counts.
> [[inputs.netstat]]
> # no configuration
> counts =["tcp_established", "tcp_established", "tcp_fin_wait1",
> "tcp_fin_wait2", "tcp_time_wait"]
>
>
>
>
> help me~ thanks
>
> --
> 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/tencent_05656A7900DA51DB320A416C%40qq.com
> <https://groups.google.com/d/msgid/influxdb/tencent_05656A7900DA51DB320A416C%40qq.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAD%2BeXGRbPKpUhydtiUw3N5pNLGyhpQr6mJZJYwR-7f-CSSC4hA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to