prometheus setup howto
This commit is contained in:
parent
ab6a2830b8
commit
ef130972b8
1 changed files with 16 additions and 0 deletions
16
README.md
16
README.md
|
@ -100,3 +100,19 @@ This check will verify whether the alarm for temp1 is off
|
|||
|
||||
a `/metrics` endpoint is exposed with the common `metric=value` format, which is easily to integrate into your
|
||||
prometheus instance.
|
||||
|
||||
Adding something like this at the end of the `scrape_configs` section of your `prometheus.yml` could be
|
||||
enough:
|
||||
|
||||
- job_name: 'squeow'
|
||||
|
||||
# Override the global default and scrape targets from this job every 5 seconds.
|
||||
scrape_interval: 5s
|
||||
scrape_timeout: 5s
|
||||
|
||||
# metrics_path defaults to '/metrics'
|
||||
# scheme defaults to 'http'.
|
||||
|
||||
static_configs:
|
||||
- targets: ['localhost:8000']
|
||||
|
||||
|
|
Loading…
Reference in a new issue