# Can't find where to Configure remote writes on pmm2-server (docker)

**URL:** <https://forums.percona.com/t/cant-find-where-to-configure-remote-writes-on-pmm2-server-docker/28119>\
**Category:** PMM 2.x\
**Created:** [January 29, 2024, 6:52pm UTC](https://forums.percona.com/t/cant-find-where-to-configure-remote-writes-on-pmm2-server-docker/28119 "2024-01-29T18:52:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Erez\_Gilron](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/erez_gilron/32/14912_2.png) [@Erez\_Gilron](https://forums.percona.com/u/Erez_Gilron)\
**Post date:** [January 29, 2024, 6:52pm UTC](https://forums.percona.com/t/cant-find-where-to-configure-remote-writes-on-pmm2-server-docker/28119/1 "2024-01-29T18:52:16Z")

</div>

## Description:

Hi, I’m using pmm2-server (latest) docker and i need to configure it to remote write to a different TSBD, couldn’t find any documentation about it.

the setup is a pmm2-server that runs on docker and pmm2-clients running along side mysql on ec2s.

couldn’t find any information regarding this.

---

<div class="post-metadata">

**Author:** ![nurlan](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/nurlan/32/1523_2.png) [@nurlan](https://forums.percona.com/u/nurlan)\
**Post date:** [January 29, 2024, 8:12pm UTC](https://forums.percona.com/t/cant-find-where-to-configure-remote-writes-on-pmm2-server-docker/28119/2 "2024-01-29T20:12:42Z")

</div>

Hi @Erez_Gilron,

Here is pretty old [blogpost](https://www.percona.com/blog/extending-pmm-prometheus-configuration/) about how can you extend configuration, it’s still should work for Victoria Metrics.

Please let me know if it helped you.

---

<div class="post-metadata">

**Author:** ![Erez\_Gilron](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/erez_gilron/32/14912_2.png) [@Erez\_Gilron](https://forums.percona.com/u/Erez_Gilron)\
**Post date:** [January 31, 2024, 11:54am UTC](https://forums.percona.com/t/cant-find-where-to-configure-remote-writes-on-pmm2-server-docker/28119/3 "2024-01-31T11:54:46Z")

</div>

Hi, Thanks but this isn’t helping,  
i’m using pmm2-server docker and there’s no prometheus.yml or `/srv/prometheus/prometheus.base.yml`

i did find that i can run the vmagent exporter in the server with the -remoteWrite.url flag, but for it to perform as expected, a prometheus config is required aswell.  
there’s the file located at /etc/victoriametrics-promscrape.yml, but this configuration is related to the pmm-server metrics without all the pmm-client targets.  
so what i found is a way to remote write only the server metrics, while i have multiple pmm-clients writing to the server.

i wish to get all the metrics from the server and forward them to a different TSDB (this case, coralogix) from the pmm-server without the need to run the vmagent on each instance where pmm-client is installed

hope i’m able to explain my issue.

thanks 🙂

---

<div class="post-metadata">

**Author:** ![nurlan](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/nurlan/32/1523_2.png) [@nurlan](https://forums.percona.com/u/nurlan)\
**Post date:** [February 8, 2024, 10:58pm UTC](https://forums.percona.com/t/cant-find-where-to-configure-remote-writes-on-pmm2-server-docker/28119/4 "2024-02-08T22:58:20Z")

</div>

@Erez_Gilron,  
you should create that file and it will be used as base file during generation of `/etc/victoriametrics-promscrape.yml`
