Prometheus-grafana stack never starts
aj619 opened this issue · comments
After going to the prometheus-grafana folder and doing docker compose up -d there is a error for the prometheus config
prometheus | ts=2023-03-30T16:54:25.711Z caller=main.go:468 level=error msg="Error loading config (--config.file=/etc/prometheus/prometheus.yml)" file=/etc/prometheus/prometheus.yml err="open /etc/prometheus/prometheus.yml: permission denied"
prometheus exited with code 2
Please fix this.
I now it has been long, but the following fixed it for me. You just need to find out what id the container uses and then make the id owner of the data directories you configured.
What worked for me was: chown -R 65534:65534 prometheus/