I have the prometheus snap installed.
root@juju-ffb995-8:/# snap list
Name Version Rev Tracking Publisher Notes
core 16-2.54.4 12834 latest/stable canonical✓ core
core18 20220309 2344 latest/stable canonical✓ base
core20 20220318 1405 latest/stable canonical✓ base
lxd 4.0.9-8e2046b 22753 4.0/stable/… canonical✓ -
prometheus 2.28.1 53 2/stable canonical✓ -
snapd 2.54.4 15177 latest/stable canonical✓ snapd
I need to edit the ./var/snap/prometheus/current/prometheus.yml
But its read only.
How do I update this file in a snap and make the changes persistent over updates of the snap?