Complete the command to start a Grafana container with the default port exposed.
docker run -d -p [1]:3000 grafana/grafana
The default Grafana port inside the container is 3000, so mapping host port 3000 to container port 3000 allows access.
Complete the command to start Prometheus container for monitoring Docker containers.
docker run -d -p 9090:[1] prom/prometheus
Prometheus uses port 9090 by default for its web interface.
Fix the error in the command to run Grafana with a volume for persistent data.
docker run -d -p 3000:3000 -v [1]:/var/lib/grafana grafana/grafana
The host path must be an existing directory on your machine to store Grafana data persistently.
Fill both blanks to create a Docker network and run Grafana attached to it.
docker network [1] my-net && docker run -d --network [2] -p 3000:3000 grafana/grafana
First, create the network named 'my-net'. Then run Grafana attached to 'my-net'.
Fill all three blanks to run Prometheus with a config file and attach it to a network.
docker run -d --name prometheus --network [1] -p 9090:9090 -v [2]:/etc/prometheus/prometheus.yml prom/prometheus --config.file=[3]
Attach Prometheus to 'monitor-net' network, mount the host config file, and specify the config file path inside the container.