Thank you for the excellent "Monitoring Docker" book, it helps connect a lot of dots. I'm still working through the book, I came across the following and wanted to inform you. I came across an issue with what I believe to be in the vagrant-ubuntu. The problem seems to be that the prometheus.yml in Chapter03 is a directory, not the yml file.
how to produce
build initial prometheus and get error "[8] System error: not a directory"
vagrant@docker:/monitoring_docker$ cd Chapter03
vagrant@docker:/monitoring_docker/Chapter03$ ls
prometheus.yml
vagrant@docker:/monitoring_docker/Chapter03$ cat prometheus.yml/
cat: prometheus.yml/: Is a directory
vagrant@docker:/$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
01dd49b512e6 prom/prometheus:latest "/bin/prometheus -con" 3 minutes ago Created prometheus
vagrant@docker:/$ docker rm 01dd
rebuild container
vagrant@docker:/$ docker run --detach=true --volume=/monitoring_docker/Chapter03/prometheus.yml:/etc/prometheus/prometheus.yml --publish=9090:9090 --name=prometheus prom/prometheus:latest
e3ee089e7960a972c0e6904d22a029172731622e8dbf0c1c85cc83e99767005b
After this, the container came up and was able to get to the web UI.
Russ,
Thank you for the excellent "Monitoring Docker" book, it helps connect a lot of dots. I'm still working through the book, I came across the following and wanted to inform you. I came across an issue with what I believe to be in the vagrant-ubuntu. The problem seems to be that the prometheus.yml in Chapter03 is a directory, not the yml file.
how to produce
build initial prometheus and get error "[8] System error: not a directory"
vagrant@docker:/$ docker run \
vagrant@docker:/monitoring_docker$ cd Chapter03 vagrant@docker:/monitoring_docker/Chapter03$ ls prometheus.yml vagrant@docker:/monitoring_docker/Chapter03$ cat prometheus.yml/ cat: prometheus.yml/: Is a directory
delete directory and cp prometheus.yml
vagrant@docker:/monitoring_docker/Chapter 03$ rm -R /monitoring_docker/Chapter03/prometheus.yml vagrant@docker:/monitoring_docker/Chapter 03$ cp prometheus.yml /monitoring_docker/Chapter03/
delete old container
vagrant@docker:/$ docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 01dd49b512e6 prom/prometheus:latest "/bin/prometheus -con" 3 minutes ago Created prometheus
vagrant@docker:/$ docker rm 01dd
rebuild container
vagrant@docker:/$ docker run --detach=true --volume=/monitoring_docker/Chapter03/prometheus.yml:/etc/prometheus/prometheus.yml --publish=9090:9090 --name=prometheus prom/prometheus:latest e3ee089e7960a972c0e6904d22a029172731622e8dbf0c1c85cc83e99767005b
After this, the container came up and was able to get to the web UI.