forked from mtusi2026/mtusi2026lab6
lab6: Collector, Prometheus/Loki/Tempo/Grafana, alerts, incidents, track 1 (cost of observability)
This commit is contained in:
@@ -2,9 +2,12 @@ PYTHON ?= python3
|
||||
BASE_URL ?= http://localhost:8080
|
||||
CA_FILE ?=
|
||||
ACTION_SCRIPT ?=
|
||||
PROMETHEUS_URL ?= http://localhost:9090
|
||||
GRAFANA_URL ?= http://localhost:3000
|
||||
LAB6_ARGS = --base-url "$(BASE_URL)" --prometheus-url "$(PROMETHEUS_URL)" --grafana-url "$(GRAFANA_URL)" $(TLS_ARGS)
|
||||
TLS_ARGS = $(if $(CA_FILE),--ca-file "$(CA_FILE)",)
|
||||
|
||||
.PHONY: help check validate test load test-persistence test-failover test-dependencies stand-up stand-down stand-status wait-ready init-env test-e2e s3-security consistency bench lab5-demo lab5-faults lab5-track2 jobs
|
||||
.PHONY: help check validate test load test-persistence test-failover test-dependencies stand-up stand-down stand-status wait-ready init-env test-e2e s3-security consistency bench lab5-demo lab5-faults lab5-track2 jobs lab6-ready lab6-signals lab6-correlate lab6-redaction lab6-history lab6-incident-worker lab6-incident-db lab6-incident-telemetry lab6-track1
|
||||
|
||||
help:
|
||||
@echo "check: offline structure; validate: full OpenAPI (requirements-dev.txt); test: running API; load: synthetic writes; init-env: .env + secrets; test-e2e: app e2e; s3-security; consistency; bench; lab5-demo; lab5-faults; lab5-track2; jobs ARGS=..."
|
||||
@@ -79,3 +82,30 @@ lab5-track2:
|
||||
|
||||
jobs:
|
||||
docker compose --env-file $(COMPOSE_ENV_FILE) exec -T api node dist/jobs/jobs.cli.js $(ARGS)
|
||||
|
||||
lab6-ready:
|
||||
$(PYTHON) scripts/lab6/verify.py ready $(LAB6_ARGS)
|
||||
|
||||
lab6-signals:
|
||||
$(PYTHON) scripts/lab6/verify.py signals $(LAB6_ARGS)
|
||||
|
||||
lab6-correlate:
|
||||
$(PYTHON) scripts/lab6/verify.py correlation $(LAB6_ARGS)
|
||||
|
||||
lab6-redaction:
|
||||
$(PYTHON) scripts/lab6/verify.py redaction $(LAB6_ARGS)
|
||||
|
||||
lab6-history:
|
||||
$(PYTHON) scripts/lab6/verify.py history $(LAB6_ARGS)
|
||||
|
||||
lab6-incident-worker:
|
||||
$(PYTHON) scripts/lab6/incidents.py --scenario worker $(LAB6_ARGS)
|
||||
|
||||
lab6-incident-db:
|
||||
$(PYTHON) scripts/lab6/incidents.py --scenario db $(LAB6_ARGS)
|
||||
|
||||
lab6-incident-telemetry:
|
||||
$(PYTHON) scripts/lab6/incidents.py --scenario telemetry --repeat 2 $(LAB6_ARGS)
|
||||
|
||||
lab6-track1:
|
||||
$(PYTHON) scripts/lab6/track1.py $(LAB6_ARGS)
|
||||
|
||||
Reference in New Issue
Block a user