mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-02-21 11:05:56 +00:00
adding metrics_path to snippet
Adding a change to the prometheus config snippet, it should contain: metrics_path: '/metrics' Putting the target url with the "/metrics" in it will prevent prometheus from loading.
parent
3c943bca5a
commit
a1bdb7802e
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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue