docker-compose setup to deploy prometheus.
Go to file
cypherpunk 9c6a93eddc refactored compose to use grafana over promdash, added node-exporter for host metrics and use upstream prometheus 2016-07-13 14:33:55 +02:00
prom wow a lot of changes happend since I set this up in October. I locked down the Prometheus version to 0.16.1, fixed the docker-compose to align the new config commands, and updated the prometheus.yml format to the new standard. 2015-11-18 10:52:09 +01:00
Dashboard_example.png Added Dashboard screenshot 2015-08-19 11:17:08 +02:00
New_server.png adjusted screenshot size 2015-08-19 11:10:53 +02:00
README.md Fix typo in README 2016-06-29 22:27:38 +02:00
dashboard_queries.txt Create dashboard_queries.txt 2015-11-13 12:10:10 +01:00
docker-compose.yml refactored compose to use grafana over promdash, added node-exporter for host metrics and use upstream prometheus 2016-07-13 14:33:55 +02:00
dockerprometheus.dsb added Prometheus DAB file for 1.12 2016-06-28 13:28:38 +02:00

README.md

A Prometheus docker-compose stack

Here's a quick start to stand-up a Prometheus stack containing Prometheus server, container-exporter, and the Prometheus Dashboard to monitor your Docker infrastructure.

##Pre-requisites Before we get started installing the Prometheus stack. Ensure you install docker-compose on your Docker host machine.

##Installation & Configuration Clone the project locally to your Docker host.

If you would like to change which targets should be monitored or make configuration changes edit the /prom/prometheus.yml file. The targets section. The targets section is where you define which components (data exporters) should be monitored by Prometheus. The names defined in this file are actually sourced from the service name in the docker-compose file. If you wish to change names of the services change the "container_name" parameter in the docker-compose.yml file.

Once configurations are done let's start it up. From the /prometheus project directory run the following commands:

$ docker-compose up
$ docker-compose start

The Prometheus stack should now be running. To access the different components:

Prometheus: http://<Host IP Address>:9090> for example http://192.168.10.1:9090

Prometheus Dashboard: http://<Host IP Address>:3000 for example http://192.168.10.1:3000

Post Configuration

Now we need to connect the Prometheus Dashboard to the Prometheus installation. Access the Prom Dash as mentioned above.

  • Click the "Server" Menu at the top
  • Click "New Server"
  • Input desired name, Prometheus server IP and port (http://<Host IP Address>:9090> ) and select Prometheus for server type.

PromDash New Server

Configure Dashboards

Let's create our first Dashboard. Head over up to the Dashboard menu. First, create a new directory. Next, create a new Dashboard.

Here's a quick Dashboard I put together as an example.

PromDash Screenshot

Sample Dashboard Queries

The queries used in the example dashboard are located here - Dashboard Queries

ToDo

  • Integrate and configure Alerting.
  • Make a separate stack with just cAdvisor as the metric collection