Created Prometheus Exporter (markdown)

master
Hunter Long 2018-06-24 20:22:46 -07:00
parent 27cbbdfe59
commit af7cbde3bb
1 changed files with 25 additions and 0 deletions

25
Prometheus-Exporter.md Normal file

@ -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
```