ci cd mermaid

This commit is contained in:
2022-02-25 14:06:33 +01:00
parent fb4b2bc96a
commit 1e6ccbf45d
4 changed files with 54 additions and 22 deletions

View File

@ -28,18 +28,17 @@ I'll not use GlusterFS volume for storing Prometheus data, because :
* No critical data, it's just metrics
* No need of backup, and it can be pretty huge
First go to the `master-01` node settings in Portainer inside *Swarm Cluster overview*, and apply a new label that indicates that this node is the host of Prometheus data.
First go to the `manager-01` node settings in Portainer inside *Swarm Cluster overview*, and apply a new label that indicates that this node is the host of Prometheus data.
![Prometheus host overview](portainer-host-overview.png)
It's equivalent of doing :
```sh
export NODE_ID=$(docker info -f '{{.Swarm.NodeID}}')
docker node update --label-add prometheus.data=true $NODE_ID
docker node update --label-add prometheus.data=true manager-01
```
Then create a config file at `/etc/prometheus/prometheus.yml` in `master-01` node :
Then create a config file at `/etc/prometheus/prometheus.yml` in `manager-01` node :
```yml
global: