From fc678ad58b356ad27e5aa2b98f82d7c96b8c178d Mon Sep 17 00:00:00 2001 From: Tran Hau Date: Sat, 9 May 2020 21:22:50 +0700 Subject: [PATCH] prom --- Development/prometheus.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Development/prometheus.md b/Development/prometheus.md index 6e0851e..9ff95a8 100644 --- a/Development/prometheus.md +++ b/Development/prometheus.md @@ -34,3 +34,20 @@ docker run -d \ -p 9091:9091 \ prom/pushgateway ``` + +UI: + +```txt +localhost:9091 +``` + +To configure the Pushgateway as a target to scrape by Prometheus, +add to Prometheus configuration file: + +```yaml +scrape_configs: + - job_name: "pushgateway" + honor_labels: true + static_configs: + - targets: ["localhost:9091"] +```