From e9a64eae5237632e836bfefe98c9d7b50cd24acc Mon Sep 17 00:00:00 2001 From: Matthew Macdonald-Wallace Date: Mon, 9 Aug 2021 17:33:33 +0100 Subject: [PATCH] Added detail on how to configure prometheus and linked to basic Grafana dashboard --- Prometheus-Integration.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Prometheus-Integration.md b/Prometheus-Integration.md index e5fa1da..30d20ea 100644 --- a/Prometheus-Integration.md +++ b/Prometheus-Integration.md @@ -12,6 +12,25 @@ Labels to filter by include: |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: + +``` + - job_name: 'uptime' + scrape_interval: 30s + scheme: http + static_configs: + - targets: ['uptime-kuma.url'] + basic_auth: # Only needed if authentication is enabled (default) + username: + 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 Assuming we have HTTP monitors in place for bbc.co.uk and google.com: