mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-02-25 13:05:55 +00:00
Created [WIP] Prometheus Integration (markdown)
parent
8e9763cb46
commit
0ad12fb2e1
1 changed files with 26 additions and 0 deletions
26
[WIP]-Prometheus-Integration.md
Normal file
26
[WIP]-Prometheus-Integration.md
Normal file
|
@ -0,0 +1,26 @@
|
|||
# Passing metrics to other platforms
|
||||
|
||||
If you already use [Prometheus.io](https://prometheus.io) or a platform that supports Prometheus exporter format, you can get the metrics about each monitoring target from `http://<your.installation>:<your_port>/metrics`.
|
||||
|
||||
Labels to filter by include:
|
||||
|
||||
| Label Name | Description |
|
||||
+------------+-------------+
|
||||
|monitor_name| The "Friendly Name" of the monitor |
|
||||
|monitor_type| The type (HTTP, keyword, TCP) of monitoring check |
|
||||
|monitor_url | The URL to be monitored (HTTP, keyword)
|
||||
|monitor_hostname | The Hostname to be monitored (TCP) |
|
||||
|monitor_port | The port to be monitored (TCP) |
|
||||
|
||||
## Example PromQL queries
|
||||
|
||||
Assuming we have HTTP monitors in place for bbc.co.uk and google.com:
|
||||
|
||||
```
|
||||
# Show all response rates gouped by site
|
||||
sum(monitor_response_time) by (monitor_name)
|
||||
# Show only the response time for BBC.co.uk
|
||||
sum(monitor_reponse_time{monitor_url="https://www.bbc.co.uk/"})
|
||||
# Show the current status of Google.com
|
||||
monitor_status{monitor_name="Google"}
|
||||
```
|
Loading…
Add table
Reference in a new issue