This is the repo for the blog post Hands on Monitoring a Spring Boot Application with Honeycomb. It's a Spring Boot app, that exposes an endpoint for persisting Bee🐝 objects to a local H2 database with Spring Data Rest. Its instrumented with Honeycomb.
- Setup a Honeycomb Account
- Install Java 11 on your computer (I use jenv for managing java versions)
- Clone the repository:
https://github.com/cpaika/honeycomb-demo.git
- Substitute your Honeycomb API key here
- Run
mvn spring-boot:run
- Install Artillery
- Make sure the Spring Boot app is running
cd artillery
artillery run bee-test.yml
Persisting a Bee:
curl -X POST -H "Content-Type:application/json" -d '{ "name" : "Buzzy", "catchphrase":"Well look at that flower!"}' http://localhost:8080/bees
Get a list of all Bees:
curl localhost:8080/bees