Setup Agent Mode

I am trying to run Prometheus in agent mode. Is there any setup guide or info online somewhere about the config and how to do this?

I’m running v 2.34. I’ve set flag (–enable-feature=agent) but get error below

error msg=“Error loading config (–config.file=/etc/prometheus/prometheus.yml)” file=/etc/prometheus/prometheus.yml err=“at least one remote_write target must be specified in agent mode”