How lwambisrat/devops-lab-engineering-lab works
Regional Health is a hands-on reliability and capacity-engineering lab, not just a healthcare API. The learner selects an incident, reproduces its traffic, then investigates database behavior and service metrics to diagnose and verify a fix. The API supports patient lookup, admissions, exports, health/readiness checks, and audit-store probing. The README documents the MySQL, MongoDB, Prometheus, and Grafana environment; API-to-database calls are visible in the sampled server source. Infrastructure and seed subsystems are included, but their runtime wiring was not sampled.
Main entry points: server.js API Runtime · database.js Connection Factories · load-tests Load Scenarios · prometheus.yml Prometheus
Components 18
Incident Lab
- Incident Queue
incidents - Load Scenarios
load-tests - Investigation Journal
LAB_JOURNAL.md - Cloud Provisioning
terraform
Healthcare API
- API Runtime
api/server.js - Patient Queries
api/server.js - Bed Admissions
api/server.js - Patient Export
api/server.js - Health and Readiness
api/server.js - API Metrics
api/server.js - Credential Loading
api/secrets.js
Data Services
- Connection Factories
api/database.js - MySQL Store
- Mongo Audit Store
- Data Seeding
data-seed
Observability
- Prometheus
monitoring/prometheus.yml - Grafana Dashboards
monitoring/grafana
Other components
- On-call Learner
Connections 17
- On-call Learner → Incident Queue: selects ticket
README.md - On-call Learner → Load Scenarios: runs scenario
README.md - Load Scenarios → API Runtime: sends traffic
README.md - On-call Learner → Investigation Journal: records findings
README.md - API Runtime → Credential Loading: loads credentials
api/server.js - API Runtime → Connection Factories: initializes connections
api/server.js - Patient Queries → MySQL Store: queries patients
api/server.js - Bed Admissions → MySQL Store: updates beds
api/server.js - Patient Export → MySQL Store: reads batches
api/server.js - Health and Readiness → Connection Factories: checks readiness
api/server.js - Connection Factories → MySQL Store: creates pool
api/database.js - Connection Factories → Mongo Audit Store: connects lazily
api/database.js - API Runtime → Mongo Audit Store: pings audit store
api/server.js - Prometheus → API Metrics: scrapes metrics
README.md - On-call Learner → Prometheus: investigates metrics
README.md - On-call Learner → Grafana Dashboards: reviews dashboards
README.md - On-call Learner → MySQL Store: inspects database
README.md