官术网_书友最值得收藏!

Creating the cluster and deploying services

We'll start by recreating the cluster and deploying the stacks that we used in the previous chapter.

All the commands from this chapter are available in the 04-exporters.sh Gist at https://gist.github.com/vfarcic/955690ba490ce4464fab11823eb61d97.
chmod +x scripts/dm-swarm-04.sh./scripts/dm-swarm-04.sheval $(docker-machine env swarm-1)

We executed the dm-swarm-04.sh script which, in turn, created a Swarm cluster composed of Docker Machines, created the networks and deployed the stacks. Now we should wait a few moments until all the services in the monitor stack are up and running. Please use docker stack ps monitor command to confirm that the status of all the services in the stack is Running.

Finally, we'll confirm that everything is deployed correctly by opening Prometheus in a browser.

open "http://$(docker-machine ip swarm-1)/monitor"

Now the state of our cluster is the same as it was at the end of the previous chapter and we can proceed towards deploying exporters.

主站蜘蛛池模板: 介休市| 合川市| 易门县| 郴州市| 南乐县| 灵丘县| 安西县| 洪湖市| 桦甸市| 仁怀市| 通江县| 宣城市| 武威市| 顺昌县| 偃师市| 确山县| 台东县| 南和县| 阳山县| 徐汇区| 新津县| 嘉兴市| 巫溪县| 美姑县| 洛南县| 墨江| 油尖旺区| 巴青县| 平南县| 防城港市| 武乡县| 沂南县| 门头沟区| 法库县| 綦江县| 南通市| 济阳县| 富宁县| 汶川县| 临漳县| 铜梁县|