From af7cbde3bb5f180815092022547212149f2ce025 Mon Sep 17 00:00:00 2001 From: Hunter Long Date: Sun, 24 Jun 2018 20:22:46 -0700 Subject: [PATCH] Created Prometheus Exporter (markdown) --- Prometheus-Exporter.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Prometheus-Exporter.md diff --git a/Prometheus-Exporter.md b/Prometheus-Exporter.md new file mode 100644 index 0000000..c196ad0 --- /dev/null +++ b/Prometheus-Exporter.md @@ -0,0 +1,25 @@ +# Prometheus Exporter +Statup includes a prometheus exporter so you can have even more monitoring power with your services. The prometheus exporter can be seen on `/metrics`, simply create another exporter in your prometheus config. + +```yaml +scrape_configs: + - job_name: 'statup' + static_configs: + - targets: ['statup:8080'] +``` + +### `/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="Statup.io"} 0 +statup_service_latency{id="2" name="Statup.io"} 3 +statup_service_online{id="2" name="Statup.io"} 1 +statup_service_status_code{id="2" name="Statup.io"} 200 +statup_service_response_length{id="2" name="Statup.io"} 2 +``` \ No newline at end of file