From 10fbcd52686cc682abf21ce64b82eeed1b0f0818 Mon Sep 17 00:00:00 2001 From: Gavin Holahan Date: Fri, 28 Feb 2025 02:12:19 +0000 Subject: [PATCH] service --- jobs/monitoring/prometheus.hcl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/jobs/monitoring/prometheus.hcl b/jobs/monitoring/prometheus.hcl index 6ffa3af..bd5c882 100644 --- a/jobs/monitoring/prometheus.hcl +++ b/jobs/monitoring/prometheus.hcl @@ -14,6 +14,11 @@ job "prometheus" { task "prometheus" { driver = "docker" + service { + name = "prometheus" + port = "http" + } + config { image = "prom/prometheus:latest" ports = ["http"] @@ -56,8 +61,6 @@ scrape_configs: metrics_path: /v1/metrics params: format: ['prometheus'] - - EOF }