From 7ca66dc7aa004115c33b685f5bf942596b52dff5 Mon Sep 17 00:00:00 2001 From: Misty Stanley-Jones Date: Tue, 30 Jan 2018 16:04:38 -0800 Subject: [PATCH] Doc that you need an initialized swarm for tutorial (#5871) You need to initialize your swarm before starting a service on it. --- engine/admin/prometheus.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/engine/admin/prometheus.md b/engine/admin/prometheus.md index c6ca5b1e9e..6ec3c76c3e 100644 --- a/engine/admin/prometheus.md +++ b/engine/admin/prometheus.md @@ -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