Add monitoring stack: Prometheus, Alertmanager, Grafana
This commit is contained in:
21
monitoring/prometheus/prometheus.yml
Normal file
21
monitoring/prometheus/prometheus.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
global:
|
||||
scrape_interval: 15s
|
||||
evaluation_interval: 15s
|
||||
|
||||
alerting:
|
||||
alertmanagers:
|
||||
- static_configs:
|
||||
- targets: ["alertmanager:9093"]
|
||||
|
||||
rule_files:
|
||||
- /etc/prometheus/alert_rules.yml
|
||||
|
||||
scrape_configs:
|
||||
- job_name: prometheus
|
||||
static_configs:
|
||||
- targets: ["localhost:9090"]
|
||||
|
||||
- job_name: webapp
|
||||
metrics_path: /metrics
|
||||
static_configs:
|
||||
- targets: ["webapp:8000"]
|
||||
Reference in New Issue
Block a user