Skip to content

About

Spring Boot example of custom application metrics using AOP, Prometheus, and Grafana. Companion code for a monitoring walkthrough.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

Repository files navigation

Custom Metrics Demo

This is the companion Github repo of the following medium article that I wrote on implementing custom metrics in Spring Boot including examples of some advanced techniques such as Aspect Oriented Programming (AOP), scraping the app's metrics using Prometheus and visualizing them using Grafana to create insightful dashboards.

How to run

sudo docker-compose up --build -d

How to use

  • Use this curl to create orders

    curl --request POST \
    --url http://localhost:8080/orders \
    --header 'Content-Type: application/json' \
    --data '{
      "itemName": "item1"
    }'
    
  • Access Grafana at http://localhost:3000 and when you configure Prometheus data source in Grafana use http://my-prometheus:9090

About

Spring Boot example of custom application metrics using AOP, Prometheus, and Grafana. Companion code for a monitoring walkthrough.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages