Deploy Prometheus with Docker



Prometheus is an open-source systems monitoring and alerting toolkit, You can monitor various resources using PrometheusPrometheus has multiple modes for visualisation data: a built-in expression browse.

Prometheus-Docker 
We will download the prometheus setup for linux and unzip the setup.

Download the promethes for linux.
https://github.com/prometheus/prometheus/releases/download/v2.7.1/prometheus-2.7.1.linux-amd64.tar.gz

Untar setup.

$ tar -xzf prometheus-2.7.1.linux-amd64.tar.gz

Go to the directory.
$ cd prometheus-2.7.1.linux-amd64

Now you can costumize you promethus.yml file and add some target into it and save the file.

Create docker file.

$ Dockerfile

FROM prom/prometheus
ADD . /etc/prometheus/

save the file.

Build the Dockerfile.
$ docker build -t prometheus:myversion .

Now run the Docker image.
$ docker run prometheus:myversion

Now you can check from browser with port 9090.
http://localhost:9000


Now you can able to open Prometheus dashboard. Also you can configure Prometheus with Grafana to visualise data flow.

Comments