From 94593eeaf5dc0086a6e7ad39aa86e91d17fc4179 Mon Sep 17 00:00:00 2001 From: Hunter Long Date: Tue, 5 Mar 2019 12:38:09 -0800 Subject: [PATCH] Updated Prometheus Exporter (markdown) --- Prometheus-Exporter.md | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Prometheus-Exporter.md b/Prometheus-Exporter.md index c0b58a6..d66ae20 100644 --- a/Prometheus-Exporter.md +++ b/Prometheus-Exporter.md @@ -9,18 +9,18 @@ Statping has a [Grafana Dashboard](https://grafana.com/dashboards/6950) that you If you have Statping and the Prometheus server in the same Docker network, you can use the yaml config below. ```yaml scrape_configs: - - job_name: 'statup' + - job_name: 'statping' scrape_interval: 30s bearer_token: 'SECRET API KEY HERE' static_configs: - - targets: ['statup:8080'] + - targets: ['statping:8080'] ``` ## Remote URL Prometheus Exporter This exporter yaml below has `scheme: https`, which you can remove if you arn't using HTTPS. ```yaml scrape_configs: - - job_name: 'statup' + - job_name: 'statping' scheme: https scrape_interval: 30s bearer_token: 'SECRET API KEY HERE' @@ -30,16 +30,16 @@ scrape_configs: ### `/metrics` Output ``` -statup_total_failures 206 -statup_total_services 4 -statup_service_failures{id="1" name="Google"} 0 -statup_service_latency{id="1" name="Google"} 12 -statup_service_online{id="1" name="Google"} 1 -statup_service_status_code{id="1" name="Google"} 200 -statup_service_response_length{id="1" name="Google"} 10777 -statup_service_failures{id="2" name="Statping.com"} 0 -statup_service_latency{id="2" name="Statping.com"} 3 -statup_service_online{id="2" name="Statping.com"} 1 -statup_service_status_code{id="2" name="Statping.com"} 200 -statup_service_response_length{id="2" name="Statping.com"} 2 +statping_total_failures 206 +statping_total_services 4 +statping_service_failures{id="1" name="Google"} 0 +statping_service_latency{id="1" name="Google"} 12 +statping_service_online{id="1" name="Google"} 1 +statping_service_status_code{id="1" name="Google"} 200 +statping_service_response_length{id="1" name="Google"} 10777 +statping_service_failures{id="2" name="Statping.com"} 0 +statping_service_latency{id="2" name="Statping.com"} 3 +statping_service_online{id="2" name="Statping.com"} 1 +statping_service_status_code{id="2" name="Statping.com"} 200 +statping_service_response_length{id="2" name="Statping.com"} 2 ``` \ No newline at end of file