How can add new metrics to telegraf

I have installed telegraf 1.17 on my redhat7 actually it send data to other app (vmware vrealize operation ) and I can see metrics such as CPU , disk , memory in vrops such as attach pic but I cannot see anything about network status (send , receive , …) how can add these metrics to my telegraf ?
Also I have attached telegraf.conf
telegraf.txt (272.4 KB)
met

2 - According to attach pic we have some metrics for cpu such as usage guest , usage guest nice, usage nice, usage … How can understand what is each one ? for example which one show how much my cpu usage now ?

Hi @baber,
I hope you are doing well. With regards to network usage check out the following input plugins:

For more information on the CPU plugin check out the man proc docs: proc(5) - Linux manual page

Thanks, but would you please advice me how can use it ?
Do I have to just add follow code to telegraf.conf ?

Collect response time of a TCP or UDP connection

[[inputs.net_response]]

Protocol, must be “tcp” or “udp”

NOTE: because the “udp” protocol does not respond to requests, it requires

a send/expect string pair (see below).

protocol = “tcp”

Server address (default localhost)

address = “localhost:80”

Set timeout

timeout = “1s”

Set read timeout (only used if expecting a response)

read_timeout = “1s”

The following options are required for UDP checks. For TCP, they are

optional. The plugin will send the given string to the server and then

expect to receive the given ‘expect’ string back.

string sent to the server

send = “ssh”

expected string in answer

expect = “ssh”

Uncomment to remove deprecated fields; recommended for new deploys

fielddrop = [“result_type”, “string_found”]

Hi @baber,
You are correct. If you would like to add the input plugin. Add this to your current config file:

# Collect response time of a TCP or UDP connection
# TCP example
[[inputs.net_response]]
  protocol = "tcp"
  ## Server address (default localhost)
  address = "localhost:80"

# UDP Example:
# Collect response time of a TCP or UDP connection
[[inputs.net_response]]
  protocol = "UDP"
  ## Server address (default localhost)
  address = "localhost:80"

  ## The following options are required for UDP checks. For TCP, they are
  ## optional. The plugin will send the given string to the server and then
  ## expect to receive the given 'expect' string back.
  ## string sent to the server
   send = "ssh"
  ## expected string in answer
   expect = "ssh"

I added above to my telegraf.conf file but when restart telegraf it shows follow error :

"2021-11-23T06:30:00Z E! [inputs.net_response]: Error in plugin: Bad protocol
2021-11-23T06:30:41Z E! Output [wavefront] unexpected type: string, with value: connection_failed, for: net.response.result.type
2021-11-23T06:35:00Z E! [inputs.net_response]: Error in plugin: Bad protocol
2021-11-23T06:35:41Z E! Output [wavefront] unexpected type: string, with value: connection_failed, for: net.response.result.type "

and did not add any metric about network .

Would you please help me about it ?

I added this to my telegraf.conf

[[inputs.net_response]]

## Protocol, must be “tcp” or “udp”

## NOTE: because the “udp” protocol does not respond to requests, it requires

## a send/expect string pair (see below).

protocol = “tcp”

## Server address (default localhost)

address = “localhost:80”

## Set timeout

timeout = "1s"

## Set read timeout (only used if expecting a response)

read_timeout = "1s"

## The following options are required for UDP checks. For TCP, they are

## optional. The plugin will send the given string to the server and then

## expect to receive the given ‘expect’ string back.

## string sent to the server

send = "ssh"

## expected string in answer

expect = "ssh"

## Uncomment to remove deprecated fields

fielddrop = ["result_type", "string_found"]

and start telegraf without any error . Now my problems is cannot see network metric in my monitoring app
met2