Spring Boot Http (3.x)
5,151

Created 6/13/2024
Updated 6/13/2024
Revision 1
Grafana Version >=11.0.0
Datasources
Prometheus

Introduction

This dashboard is designed to monitor the state and performance of HTTP requests in a Spring Boot application. It uses Spring Boot Actuator to expose metrics and Prometheus to collect and store these metrics. Grafana is then used to visualize the collected data, providing insights into the HTTP request behavior.

Panels Overview

2xx Response

  • Description: Displays the rate of successful HTTP responses (status code 2xx) over the last minute. This helps in understanding how often the application successfully handles requests.
  • Metrics: rate(http_server_requests_seconds_count[1m])

4xx Response

  • Description: Shows the rate of client error HTTP responses (status code 4xx) over the last minute. This helps in identifying how often the clients are sending bad requests.
  • Metrics: rate(http_server_requests_seconds_count[1m])

5xx Response

  • Description: Indicates the rate of server error HTTP responses (status code 5xx) over the last minute. This helps in identifying server-side issues that need to be addressed.
  • Metrics: rate(http_server_requests_seconds_count[1m])

2xx Response Time

  • Description: Shows the average response time of successful HTTP requests (status code 2xx) over the last minute. This helps in understanding the performance of successful requests.
  • Metrics: irate(http_server_requests_seconds_sum[1m]) / irate(http_server_requests_seconds_count[1m])

4xx Response Time

  • Description: Displays the average response time of client error HTTP requests (status code 4xx) over the last minute. This helps in identifying the response times for client errors.
  • Metrics: irate(http_server_requests_seconds_sum[1m]) / irate(http_server_requests_seconds_count[1m])

5xx Response Time

  • Description: Indicates the average response time of server error HTTP requests (status code 5xx) over the last minute. This helps in identifying the response times for server errors.
  • Metrics: irate(http_server_requests_seconds_sum[1m]) / irate(http_server_requests_seconds_count[1m])
Get Dashboard
Download
Copy to Clipboard
Source Grafana.com