Skip to content

A Spring Boot app for persisting Bees, used to evaluate Honeycomb

Notifications You must be signed in to change notification settings

cpaika/honeycomb-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

honeycomb-demo

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.

How to run on Mac/Linux

  1. Setup a Honeycomb Account
  2. Install Java 11 on your computer (I use jenv for managing java versions)
  3. Clone the repository: https://github.com/cpaika/honeycomb-demo.git
  4. Substitute your Honeycomb API key here
  5. Run mvn spring-boot:run

How to run the performance tests

  1. Install Artillery
  2. Make sure the Spring Boot app is running
  3. cd artillery
  4. 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

About

A Spring Boot app for persisting Bees, used to evaluate Honeycomb

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages