You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following the tutorial instructions for adding Prometheus results in an error where Prometheus attempts to read its configuration file but encounters a directory instead.
Current Behavior
When following the tutorial steps exactly as written, Prometheus fails to start with the following error:
level=ERROR source=main.go:593 msg="Error loading config (--config.file=/etc/prometheus/prometheus.yml)" file=/etc/prometheus/prometheus.yml err="read /etc/prometheus/prometheus.yml: is a directory"
The error keeps repeating and Prometheus exits with code 2.
@BBITWestin, You are right! Same issue here.
There is some issue mounting ./prometheus. volume into /etc/prometheus or locating prometheus.yml in local file system.
The workaround that worked for me:
In docker-compose.yml => comment out the command causing the issue
command:
- '--config.file=/etc/prometheus/prometheus.yml'
Start the container
In Docker Desktop locate and open prometheus container
Navigate to Files tab
Navigate to /etc
Right click on /etc and import /prometheus folder from your file system
Issue Description
Following the tutorial instructions for adding Prometheus results in an error where Prometheus attempts to read its configuration file but encounters a directory instead.
Current Behavior
When following the tutorial steps exactly as written, Prometheus fails to start with the following error:
The error keeps repeating and Prometheus exits with code 2.
Current Tutorial Configuration
docker-compose.yml section:
Environment
The text was updated successfully, but these errors were encountered: