Merge pull request #41 from SiskoUrso/patch-1

adding metrics_path to snippet
Louis Lam 2023-05-10 22:57:36 +08:00 committed by GitHub
commit 1b1eae2a61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

@ -20,6 +20,7 @@ Put the following into your Prometheus config:
- job_name: 'uptime' - job_name: 'uptime'
scrape_interval: 30s scrape_interval: 30s
scheme: http scheme: http
metrics_path: '/metrics'
static_configs: static_configs:
- targets: ['uptime-kuma.url'] - targets: ['uptime-kuma.url']
basic_auth: # Only needed if authentication is enabled (default) basic_auth: # Only needed if authentication is enabled (default)
@ -42,4 +43,4 @@ sum(monitor_response_time) by (monitor_name)
sum(monitor_reponse_time{monitor_url="https://www.bbc.co.uk/"}) sum(monitor_reponse_time{monitor_url="https://www.bbc.co.uk/"})
# Show the current status of Google.com # Show the current status of Google.com
monitor_status{monitor_name="Google"} monitor_status{monitor_name="Google"}
``` ```