# Setup Agent Mode

**URL:** https://discuss.prometheus.io/t/setup-agent-mode/921
**Category:** Prometheus server
**Created:** [April 20, 2022, 2:12pm UTC](https://discuss.prometheus.io/t/setup-agent-mode/921 "2022-04-20T14:12:06Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![sss](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@sss](https://discuss.prometheus.io/u/sss)
#### Post date: [April 20, 2022, 2:12pm UTC](https://discuss.prometheus.io/t/setup-agent-mode/921/1 "2022-04-20T14:12:06Z")

</div>

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”
