docker

Building a Prometheus, Grafana and pushgateway cluster with Kubernates

Building a Prometheus, Grafana and pushgateway cluster with Kubernates

This article is my notes on practicing building a cluster of Prometheus, Grafana and pushgateway in Kubernates environment. The repository is located at soudegesu/prometheus-pushgw-practice . Goals Building a Prometheus, Grafana and pushgateway cluster with Kubernates Grafana references Prometheus as a datasource. Prometheus pull metrics from pushgateway. For now, I will aim to build a cluster on a local machine. These goals outline is as shown in the following figure. Environment
Start mysql docker container with docker-compose

Start mysql docker container with docker-compose

In the previous article, I can start mysql docker container by using the docker run command after executing docker build. Personally, I like the lesser option of cli, so this time I'd like to start docker-compose a bit easier to start up. Install docker-compose Let's install docker-toolbox from the following site. Docker-compose is also included in the download. https://docs.docker.com/toolbox/ Docker-compose provides functions to easily manage multiple containers. In this article, only mysql is started with a container, but since setting up system components and controlling the order of activation can only be described in yaml file, it is highly readable and easy to manage even with VCS.
Create a Docker image with docker build command

Create a Docker image with docker build command

This post is a personal note for building mysql container using Docker. Update Docker daemon In my case, the version of docker was old, so I downloaded docker for Mac from the official website and updated docker daemon. Check docker version. 1docker version 2 3Client: 4 Version: 1.13.0 5 API version: 1.25 6 Go version: go1.7.3 7 Git commit: 49bf474 8 Built: Wed Jan 18 16:20:26 2017 9 OS/Arch: darwin/amd64 10 11Server: 12 Version: 1.