Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prometheus-grafana stack never starts #342

Open
aj619 opened this issue Mar 30, 2023 · 1 comment
Open

Prometheus-grafana stack never starts #342

aj619 opened this issue Mar 30, 2023 · 1 comment

Comments

@aj619
Copy link

aj619 commented Mar 30, 2023

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.

@Xiakit
Copy link

Xiakit commented Jul 21, 2023

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants