split docker-compose into core and observability stacks; add ntfy, alertmanager, blackbox exporter, and otel-collector services; configure prometheus alerting pipeline

This commit is contained in:
2026-07-15 18:21:50 +00:00
parent 17c1d39cc2
commit e13bfe4502
12 changed files with 267 additions and 70 deletions
+36
View File
@@ -0,0 +1,36 @@
receivers:
otlp:
protocols:
http:
endpoint: 0.0.0.0:4318
prometheus:
config:
scrape_configs:
- job_name: reverse_caddy
scrape_interval: 10s
static_configs:
- targets: ['reverse_caddy:2019']
- job_name: cadvisor
scrape_interval: 10s
static_configs:
- targets: ['cadvisor:8080']
processors:
memory_limiter:
check_interval: 5s
limit_mib: 200
spike_limit_mib: 50
batch:
timeout: 10s
send_batch_size: 1000
exporters:
prometheusremotewrite:
endpoint: http://prometheus:9090/api/v1/write
service:
pipelines:
metrics:
receivers: [otlp, prometheus]
processors: [memory_limiter, batch]
exporters: [prometheusremotewrite]