This example show dashboard created for Grafana specialized for monitoring:
- Servlet
- Connection Pool
- Thread Pool
- Sessions
- System Resources
- Garbage Collections
For compile project execute on terminal:
cd app-api-say
mvn clean install
For create containers with app execute on terminal:
docker compose up -d --build
For navigate to console Grafana dashboard:
Open Url Grafana Console
Credentials:
- User: admin
- Password: P@ssw0rd
For create register and visualize metrics execute:
curl -H "Content-Type: application/json" -X POST http://localhost:9080/apiSay/say/sergio
curl -H "Content-Type: application/json" -X GET http://localhost:9080/apiSay/say
For get current metrics:
curl -X GET http://localhost:9080/metrics
More details on Web Grafana