Passing metrics to other platforms
If you already use 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) |
Prometheus Configuration
Put the following into your Prometheus config:
You should see the monitor_response_time and monitor_status metrics showing up in Prometheus
Example PromQL queries
Assuming we have HTTP monitors in place for bbc.co.uk and google.com: