You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Containers/Prometheus.md
+9-5Lines changed: 9 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,9 +40,9 @@ If you do not select all three containers, Prometheus will not start.
40
40
41
41
When you select *Prometheus* in the IOTstack menu, the service definition includes the three containers:
42
42
43
-
**Prometheus*
44
-
**CAdvisor*
45
-
**Node Exporter*
43
+
**prometheus*
44
+
**prometheus-cadvisor;* and
45
+
**prometheus-nodeexporter*.
46
46
47
47
## <aname="significantFiles"> Significant directories and files </a>
48
48
@@ -142,7 +142,7 @@ The remaining instructions in the *Dockerfile* customise the *base image* to pro
142
142
143
143
The *local image* is instantiated to become your running container.
144
144
145
-
When you run the `docker images` command after *Prometheus* has been built, you will see two rows for *Prometheus*:
145
+
When you run the `docker images` command after *Prometheus* has been built, you *may* see two rows for *Prometheus*:
146
146
147
147
```bash
148
148
$ docker images
@@ -154,7 +154,9 @@ prom/prometheus latest 3f9575991a6c 3 days ago 169MB
154
154
*`prom/prometheus` is the *base image*; and
155
155
*`iotstack_prometheus` is the *local image*.
156
156
157
-
You will see the same pattern in Portainer, which reports the *base image* as "unused". You should not remove the *base* image, even though it appears to be unused.
157
+
You *may* see the same pattern in Portainer, which reports the *base image* as "unused". You should not remove the *base* image, even though it appears to be unused.
158
+
159
+
> Whether you see one or two rows depends on the version of `docker-compose` you are using and how your version of `docker-compose` builds local images.
158
160
159
161
### <aname="dependencies"> Dependencies: *CAdvisor* and *Node Exporter* </a>
160
162
@@ -316,6 +318,8 @@ Your existing *Prometheus* container continues to run while the rebuild proceeds
316
318
317
319
The `prune` is the simplest way of cleaning up. The first call removes the old *local image*. The second call cleans up the old *base image*.
318
320
321
+
> Whether an old *base image* exists depends on the version of `docker-compose` you are using and how your version of `docker-compose` builds local images.
322
+
319
323
### <aname="versionPinning"> *Prometheus* version pinning </a>
320
324
321
325
If you need to pin *Prometheus* to a particular version:
0 commit comments