Minimal API with FastAPI exposing /metrics via prometheus-fastapi-instrumentator.
Portfolio-oriented: pytest tests and CI in GitHub Actions (tests + image build, no push).
100% web: no local install needed. Push this repo and run the workflows in Actions.
GET /health→{"status":"ok"}GET /predict?x=<float>&y=<float>→ simple sumGET /metrics→ Prometheus metrics
- Actions → Run workflow for:
ci.yml(tests) anddocker-ci.yml(build without push).
.
├── app/
│ └── main.py
├── tests/
│ └── test_app.py
├── Dockerfile
├── requirements.txt
├── pytest.ini
└── .github/workflows/
├── ci.yml
└── docker-ci.yml
Portfolio repository by @mariano-tp. Licensed under MIT.
See also: Code of Conduct · Contributing · Security