mirror of
https://github.com/DoTheEvo/selfhosted-apps-docker
synced 2024-11-06 21:20:41 +00:00
update
This commit is contained in:
parent
686e63da3a
commit
44d9ef371f
@ -447,37 +447,37 @@ groups:
|
|||||||
```
|
```
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>prometheus.yml</summary>
|
<summary>prometheus.yml</summary>
|
||||||
```
|
```
|
||||||
global:
|
global:
|
||||||
scrape_interval: 15s
|
scrape_interval: 15s
|
||||||
evaluation_interval: 15s
|
evaluation_interval: 15s
|
||||||
|
|
||||||
scrape_configs:
|
scrape_configs:
|
||||||
- job_name: 'nodeexporter'
|
- job_name: 'nodeexporter'
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ['nodeexporter:9100']
|
- targets: ['nodeexporter:9100']
|
||||||
|
|
||||||
- job_name: 'cadvisor'
|
- job_name: 'cadvisor'
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ['cadvisor:8080']
|
- targets: ['cadvisor:8080']
|
||||||
|
|
||||||
- job_name: 'prometheus'
|
- job_name: 'prometheus'
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ['localhost:9090']
|
- targets: ['localhost:9090']
|
||||||
|
|
||||||
alerting:
|
alerting:
|
||||||
alertmanagers:
|
alertmanagers:
|
||||||
- scheme: http
|
- scheme: http
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
- 'alertmanager:9093'
|
- 'alertmanager:9093'
|
||||||
|
|
||||||
rule_files:
|
rule_files:
|
||||||
- '/etc/prometheus/rules/alert.rules'
|
- '/etc/prometheus/rules/alert.rules'
|
||||||
```
|
```
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
test:<br>
|
test:<br>
|
||||||
`curl -H 'Content-Type: application/json' -d '[{"labels":{"alertname":"blabla"}}]' https://alert.example.com/api/v1/alerts`
|
`curl -H 'Content-Type: application/json' -d '[{"labels":{"alertname":"blabla"}}]' https://alert.example.com/api/v1/alerts`
|
||||||
|
Loading…
Reference in New Issue
Block a user