From bbdd97911cae4342d805a70d37f30ff6ab21cd32 Mon Sep 17 00:00:00 2001 From: Tom Gallacher Date: Tue, 24 Jan 2017 17:53:59 +0000 Subject: [PATCH] Add prometheus to infra --- docker-compose.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 84f93985..095e102f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -83,3 +83,17 @@ nginx: labels: - triton.cns.services=nginx - com.docker.swarm.affinities=["container!=~*nginx*"] +############################################################################# +# Prometheus is an open source performance monitoring tool +# it is included here for demo purposes and is not required +############################################################################# +prometheus: + image: autopilotpattern/prometheus:latest + restart: always + mem_limit: 1g + env_file: .env + ports: + - 9090 + labels: + - triton.cns.services=prometheus + - com.docker.swarm.affinities=["container!=~*prometheus*"]