Updated Prometheus Exporter (markdown)

master
Hunter Long 2019-03-05 12:38:09 -08:00
parent 750be9b81c
commit 94593eeaf5
1 changed files with 15 additions and 15 deletions

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