<div dir="ltr"><div>Hello Satish,</div><div><br></div><div>The prometheus_server_default_volumes variable is defined as:<br></div><div><br></div><div>prometheus_server_default_volumes:<br>  - "{{ node_config_directory }}/prometheus-server/:{{ container_config_directory }}/:ro"<br>  - "/etc/localtime:/etc/localtime:ro"<br>  - "{{ '/etc/timezone:/etc/timezone:ro' if ansible_facts.os_family == 'Debian' else '' }}"<br>  - "prometheus_v2:/var/lib/prometheus"<br>  - "kolla_logs:/var/log/kolla/"<br></div><div><br></div><div>As you can see, it configures a lot more than just how Prometheus data is stored. By default it uses the prometheus_v2 Docker volume. If you want to store your data in /mnt/prometheus, you can use:</div><div><br></div><div>prometheus_server_default_volumes:<br>  - "{{ node_config_directory }}/prometheus-server/:{{ container_config_directory }}/:ro"<br>  - "/etc/localtime:/etc/localtime:ro"<br>  - "{{ '/etc/timezone:/etc/timezone:ro' if ansible_facts.os_family == 'Debian' else '' }}"<br>  - "/mnt/prometheus:/var/lib/prometheus"<br>  - "kolla_logs:/var/log/kolla/"</div><div><br></div><div>Note that it won't move the data for you. If you want to keep existing data, stop prometheus_server containers and copy the data from /var/lib/docker/volumes/prometheus_v2/_data into /mnt/prometheus before applying this configuration.</div><div><br></div><div>Best regards,</div><div>Pierre Riteau (priteau)</div><div><br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 15 Sept 2023 at 04:29, Satish Patel <<a href="mailto:satish.txt@gmail.com" target="_blank">satish.txt@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">Folks,<br><div><br></div><div>I have deployed prometheus with koll-ansible and now I want to change the path of prometheus volume to store matrices on bigger partitions. How do I change the volume path of prometheus to store matrix data on separate filesystem? </div><div><br></div><div>This is what I did in globals.yml but it doesn't work. Is the following variable correct? </div><div><br></div><div>prometheus_server_default_volumes: "/mnt/prometheus"<br></div></div>
</blockquote></div></div>