It runs in containers:
- ASP.NET Core Web API getting data from PostgreSQL
- PostgreSQL with one table populated by script (sql/init.sql)
- k6 load script calling Web API (load/script.js)
Build Web API image:
build.cmd
Run load tests:
run.cmd
-
Open a browser and check http://localhost:5005/metrics endpoint, it provides prometheus metrics: