How to agentless in telegraf?

how to agentless in telegraf?

Not sure what you mean.

Telegraf is a collection agent.

By default it regularly collects metrics from its enabled plugins. You can customize both the collection interval and the plugins in the configuration file.

Some of Telegraf’s plugins are “service” plugins, so instead of collecting on an interval, they listen for incoming metrics. This could be considered “agentless”, since Telegraf does not take action without input, but Telegraf can run both standard and service plugins at the same time.

One example of a service plugin is the socket_listener plugin, which listens for incoming TCP and UDP packets.