I want to monitor my port on which my grafana is running i.e, 3000 .
I think I can do that with tcp_listener plugin in telegraf.
# # Generic TCP listener
[[inputs.tcp_listener]]
# ## Address and port to host TCP listener on
service_address = "tcp6://:3000"
#
# ## Number of TCP messages allowed to queue up. Once filled, the
# ## TCP listener will start dropping packets.
# # allowed_pending_messages = 10000
## ## Maximum number of concurrent TCP connections to allow
# # max_tcp_connections = 250
#
## Data format to consume.`
# ## Each data format has it's own unique set of configuration options, read
# ## more about them here:
# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
# data_format = "influx"
But I am not getting the hold of it. It listens on this port(3000 here). What is meant by the data format here ? If I have to add the data format which telegraf supports, How do I know that which data format my grafana server is using ?
I dont know why this data format is important.
Also, Where it will store the info which it listens on the socket, in the influxdb and under which measurement ?
How can I view the data about the port being monitored ?
Please tell me If I am going in the wrong direction.
Thank you.