mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-02-25 13:05:55 +00:00
Added detail on how to configure prometheus and linked to basic Grafana dashboard
parent
846c2759f4
commit
e9a64eae52
1 changed files with 19 additions and 0 deletions
|
@ -12,6 +12,25 @@ Labels to filter by include:
|
||||||
|monitor_hostname | The Hostname to be monitored (TCP) |
|
|monitor_hostname | The Hostname to be monitored (TCP) |
|
||||||
|monitor_port | The port to be monitored (TCP) |
|
|monitor_port | The port to be monitored (TCP) |
|
||||||
|
|
||||||
|
# Prometheus Configuration
|
||||||
|
|
||||||
|
Put the following into your Prometheus config:
|
||||||
|
|
||||||
|
```
|
||||||
|
- job_name: 'uptime'
|
||||||
|
scrape_interval: 30s
|
||||||
|
scheme: http
|
||||||
|
static_configs:
|
||||||
|
- targets: ['uptime-kuma.url']
|
||||||
|
basic_auth: # Only needed if authentication is enabled (default)
|
||||||
|
username: <your user>
|
||||||
|
password: <your password>
|
||||||
|
```
|
||||||
|
|
||||||
|
You should see the `monitor_response_time` and `monitor_status` metrics showing up in Prometheus
|
||||||
|
|
||||||
|
There is also a [Grafana Dashboard](https://grafana.com/grafana/dashboards/14847) available to import into your Grafana installation to get the metrics integrated with your other monitoring tools.
|
||||||
|
|
||||||
# Example PromQL queries
|
# Example PromQL queries
|
||||||
|
|
||||||
Assuming we have HTTP monitors in place for bbc.co.uk and google.com:
|
Assuming we have HTTP monitors in place for bbc.co.uk and google.com:
|
||||||
|
|
Loading…
Add table
Reference in a new issue