From 3fef15503e17b9fd49f870ea04b7088f5dd6898f Mon Sep 17 00:00:00 2001 From: Nemo Date: Thu, 5 Apr 2018 14:46:40 +0530 Subject: [PATCH] Expose prometheus over VPN --- monitoring/prometheus.tf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/monitoring/prometheus.tf b/monitoring/prometheus.tf index 8cf3a6f..0928d36 100644 --- a/monitoring/prometheus.tf +++ b/monitoring/prometheus.tf @@ -11,6 +11,12 @@ resource docker_container "prometheus" { ip = "${var.ips["eth0"]}" } + ports { + internal = 9090 + external = 9090 + ip = "${var.ips["tun0"]}" + } + command = ["--config.file=/etc/prometheus/prometheus.yml"] volumes {