fix(monitoring): 移除失效 blackbox 目標
All checks were successful
CD Pipeline / deploy (push) Successful in 1m46s

This commit is contained in:
OoO
2026-04-30 14:39:33 +08:00
parent 6e480449c1
commit 2b9991096b
8 changed files with 14 additions and 7 deletions

View File

@@ -37,6 +37,14 @@ def test_monitoring_stack_declares_blackbox_exporter():
assert "blackbox-exporter:9115" in (ROOT / "monitoring/prometheus.yml").read_text(encoding="utf-8")
def test_active_blackbox_targets_only_include_live_uat_momo_entrypoint():
config = (ROOT / "monitoring/prometheus.yml").read_text(encoding="utf-8")
assert "https://mo.wooo.work" in config
assert "https://momo.wooo.work" not in config
assert "https://wooo.work" not in config
def test_compose_prometheus_uses_container_dns_for_momo_app():
config = (ROOT / "docker/prometheus/prometheus.yml").read_text(encoding="utf-8")