This commit is contained in:
DoTheEvo 2023-02-05 21:50:28 +01:00
parent 686e63da3a
commit 44d9ef371f

View File

@ -447,14 +447,14 @@ groups:
```
</details>
<details>
<summary>prometheus.yml</summary>
```
global:
<details>
<summary>prometheus.yml</summary>
```
global:
scrape_interval: 15s
evaluation_interval: 15s
scrape_configs:
scrape_configs:
- job_name: 'nodeexporter'
static_configs:
- targets: ['nodeexporter:9100']
@ -467,17 +467,17 @@ groups:
static_configs:
- targets: ['localhost:9090']
alerting:
alerting:
alertmanagers:
- scheme: http
static_configs:
- targets:
- 'alertmanager:9093'
rule_files:
rule_files:
- '/etc/prometheus/rules/alert.rules'
```
</details>
```
</details>
test:<br>
`curl -H 'Content-Type: application/json' -d '[{"labels":{"alertname":"blabla"}}]' https://alert.example.com/api/v1/alerts`