mirror of https://github.com/docker/docs.git
Doc that you need an initialized swarm for tutorial (#5871)
You need to initialize your swarm before starting a service on it.
This commit is contained in:
parent
e14d16d79d
commit
7ca66dc7aa
|
@ -47,7 +47,15 @@ Docker now exposes Prometheus-compatible metrics on port 9323.
|
|||
|
||||
## Configure and run Prometheus
|
||||
|
||||
In this example, Prometheus runs as a Docker container on the same host.
|
||||
In this example, Prometheus runs as a Docker service on a Docker swarm.
|
||||
|
||||
> **Prerequisites**
|
||||
>
|
||||
> 1. One or more Docker engines are joined into a Docker swarm, using `docker swarm init`
|
||||
> on one manager and `docker swarm join` on other managers and worker nodes.
|
||||
>
|
||||
> 2. You need an internet connection to pull the Prometheus image.
|
||||
|
||||
|
||||
Copy one of the following configuration files and save it to
|
||||
`/tmp/prometheus.yml` (Linux or Mac) or `C:\tmp\prometheus.yml` (Windows). This
|
||||
|
|
Loading…
Reference in New Issue