This application was created to show an example integration Prometheus with Symfony 4 Framework
The Application logic is created to add some scenarios like many database queries, slow endpoints, etc.
Application has 5 endpoints:
Method | Routing | Description |
---|---|---|
GET | /example | Endpoint to count |
POST | /example | Endpoint to count |
GET | /second/example | Endpoint to count |
POST | /second/example | Endpoint to count |
GET | /slow/example | Endpoint to count |
POST | /slow/example | Endpoint to count |
PUT | /slow/example | Endpoint to count |
DELETE | /slow/example | Endpoint to count |
GET | /metrics | Get metrics for Prometheus |
The application wasn't tested on Windows
- Run
task init
- Setup kubernetes environment
- Run
task kubeconfig
- Run
task start
- Open
http://localhost
to check if works - If you get
502 Bad Gateway
, please wait little longer. Application needs a moment to wake up - To generate an example traffic use prepared stress tests project
- Run
task docker-init
- Run
task docker-start
- Open
http://localhost:8081
to check if works - To generate an example traffic use prepared stress tests project
To see Grafana and prometheus panel you need to use the Kubernetes version
- Run
task remove-dev