-
I followed instructions described here: https://hermes.informal.systems/tutorials/production/setup-grafana.html Downloaded all files and called $ docker-compose -f docker-compose.yaml up
Starting monitor_prometheus_1 ...
monitor_promtail_1 is up-to-date
monitor_grafana_1 is up-to-date
Starting monitor_prometheus_1 ... error
ERROR: for monitor_prometheus_1 Cannot start service prometheus: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "HOME/prometheus.yml" to rootfs at "/etc/prometheus/prometheus.yml": mount /HOME/prometheus.yml:/etc/prometheus/prometheus.yml (via /proc/self/fd/6), flags: 0x5000: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
ERROR: for prometheus Cannot start service prometheus: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/HOME/prometheus.yml" to rootfs at "/etc/prometheus/prometheus.yml": mount /HOME/prometheus.yml:/etc/prometheus/prometheus.yml (via /proc/self/fd/6), flags: 0x5000: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
ERROR: Encountered errors while bringing up the project. Anyone knows how to setup Grafana? |
Beta Was this translation helpful? Give feedback.
Answered by
taitruong
Feb 20, 2023
Replies: 1 comment
-
Found the problem. In docker-compose.yaml file it expects a local file |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
taitruong
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found the problem. In docker-compose.yaml file it expects a local file
prometheus.yml
but in documentation it points to./prometheus.yml:/etc/prometheus/prometheus.yaml
.Had to rename ending from
yaml
toyml
.