Quick revision
The short answer
The default dashboard shows RED metrics per endpoint, request rate, error rate and latency percentiles, then saturation, JVM memory and GC, thread and connection pool usage and CPU, and then dependencies, downstream latency, errors and circuit breaker state. Only user-facing symptoms page someone, such as a fast SLO burn rate or a high error rate; causes like high CPU alone do not. Everything else becomes a ticket, and every paging alert has a runbook.
What to remember
In this answer, we designed the default dashboard for a Spring Boot REST service, ordered from user impact to causes: SLO status, RED metrics per endpoint from http.server.requests, saturation from JVM, Tomcat and Hikari pool metrics and CPU, and dependencies from client timers and circuit breaker state. For alerts, we paged only on user-facing symptoms such as SLO burn rate, error rate and p99, sent causes like pool pressure and memory to tickets, kept CPU on the dashboard, and required a runbook for every paging alert.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
The default dashboard shows RED metrics per endpoint, request rate, error rate and latency percentiles, then saturation, JVM memory and GC, thread and connection pool usage and CPU, and then dependencies, downstream latency, errors and circuit breaker state. Only user-facing symptoms page someone, such as a fast SLO burn rate or a high error rate; causes like high CPU alone do not. Everything else becomes a ticket, and every paging alert has a runbook.
Why this question is asked
Every new service needs a dashboard and alerts, and if each team designs its own, on-call engineers face a different layout for every service at three in the morning. A good default, delivered by the platform, answers the first incident questions in the same place for everyone: are users affected, is the service overloaded, is a dependency to blame. Interviewers ask this design question to see whether we know which signals matter and, just as important, which ones should wake someone up. In this answer, we will go through the dashboard from top to bottom, with the Spring Boot metrics that feed each panel, and then design the alerts and decide which ones page.
1The Shape of a Good Default Dashboard
We arrange the dashboard in the order an on-call engineer asks questions. The top row answers whether users are affected. The middle rows show whether the service itself is running out of something. The bottom rows show its dependencies. Each row has a short title, a template variable for environment and instance, and links to traces and logs filtered by service.
RED is a well-known name for the first row: Rate, Errors and Duration. For resources, the USE idea (utilisation, saturation, errors) applies. Combining them gives a dashboard that starts from user impact and moves toward causes.
- SLO statusError budget left, current burn rate
- RED per endpointRequests per second, error rate, p50/p95/p99
- JVMHeap after GC, GC pause time, threads
- PoolsTomcat busy threads, Hikari active and pending, executors
- HostCPU usage and throttling, pod restarts
- DependenciesDownstream latency and errors, circuit breaker state
6 layers, from the top down. Step through them one at a time.
Read from user impact at the top to causes at the bottom.
2RED Metrics Per Endpoint
Spring Boot's http.server.requests timer gives all three, tagged with uri (the route template), method, status and outcome. With a percentile histogram enabled, we can show p95 and p99 per endpoint across instances.
Notice that the error rate counts 5xx only. A 404 or 400 is usually the client's mistake and belongs on its own panel, because a spike of 4xx after a release can still be important, but it should not be mixed with server failures.
3Saturation: Is the Service Running Out of Something?
Saturation means how close a resource is to its limit, and it explains many latency problems before they become errors. From Actuator and Micrometer we get JVM memory (jvm.memory.used by area, best shown as heap used after GC), GC pause time (jvm.gc.pause), live threads, process CPU usage, and for Kubernetes the container CPU throttling from the platform's metrics.
Pools are the most useful saturation signals for a REST service. hikaricp.connections.active against the maximum, and especially hikaricp.connections.pending, show threads waiting for a database connection. Tomcat's thread usage shows whether requests queue for a worker; for Tomcat thread metrics, recent Boot versions need server.tomcat.mbeanregistry.enabled=true, so check yours. Executor metrics show queued async work. A pool that sits at its maximum while latency rises is often the first clue in an incident.
4Dependencies: Is Something Downstream to Blame?
A service is often slow because something it calls is slow. Boot's http.client.requests timer, recorded for RestClient and WebClient built from Boot's builders, gives latency and errors per downstream host and route. Database timings come from data source or repository observations, and Kafka producer and consumer metrics show lag and send errors. If the service uses Resilience4j, its metrics expose circuit breaker state (closed, open, half-open) and rejected calls, which tells the on-call engineer immediately that the service is protecting itself from a failing dependency.
5Which Conditions Page Someone
A page interrupts a person, often at night, so it must mean that users are affected now or soon, and that a human needs to act. That rules out alerting on causes alone. High CPU with normal latency and errors is not an emergency; it may just be a busy hour. A pod restart that Kubernetes handled is not an emergency either.
So we page on symptoms. The best signal is the SLO burn rate: alert when the error budget is being used fast over both a long and a short window, for example a burn rate of 14.4 over one hour and five minutes for a 30-day 99.9 percent SLO. For services without an SLO yet, a simpler rule works: error rate above 5 percent for 5 minutes with meaningful traffic, or p99 above an agreed threshold for 10 minutes. Everything else, such as a connection pool regularly near its limit, disk usage at 80 percent, a certificate expiring in 14 days, or rising GC time, becomes a ticket for working hours.
| Condition | Severity | Why |
|---|---|---|
| SLO burn rate 14.4 over 1 h and 5 min | Page | Budget gone in about 2 days |
| 5xx rate above 5 percent for 5 min | Page | Users failing now |
| p99 above agreed threshold for 10 min | Page | Users waiting now |
| Hikari pending connections above 0 for 15 min | Ticket | Cause; may lead to latency |
| Heap after GC above 85 percent | Ticket | Cause; investigate memory |
| CPU above 80 percent | Dashboard only | Not user impact by itself |
6Every Paging Alert Needs a Runbook
A runbook is a short page linked from the alert that tells the on-call engineer what the alert means, how to confirm it, the first things to check, such as the dependency row of the dashboard or recent deployments, and safe actions like rolling back or scaling out. It turns a page into a guided start instead of a puzzle. We make the link a required field in the alert definition, so an alert without a runbook cannot be created.
The platform ships this dashboard and these alert rules as templates, parameterised by service name and SLO target, so every new service gets them on day one. Teams then add business panels, such as orders per minute, on top of the standard layout rather than instead of it.
7Follow-up questions
Why page on error rate but not on CPU?
Error rate measures what users experience; CPU measures a cause that may or may not hurt them. Paging on causes produces many alerts that need no action, which teaches people to ignore pages. CPU belongs on the dashboard, where it helps explain a symptom alert.
How do we avoid paging when traffic is tiny?
With very little traffic, two errors out of ten requests is 20 percent. Alert rules should require a minimum request rate, or use SLO burn rates over longer windows, so quiet periods do not produce false alarms.
Should every endpoint have its own alert?
No. Alert at the service or user journey level, with the dashboard broken down by endpoint for diagnosis. Per-endpoint alerts multiply quickly and fire on low-traffic endpoints. Exceptions are a few critical endpoints, such as checkout, that deserve their own SLO.
8Conclusion
In this answer, we designed the default dashboard for a Spring Boot REST service, ordered from user impact to causes: SLO status, RED metrics per endpoint from http.server.requests, saturation from JVM, Tomcat and Hikari pool metrics and CPU, and dependencies from client timers and circuit breaker state. For alerts, we paged only on user-facing symptoms such as SLO burn rate, error rate and p99, sent causes like pool pressure and memory to tickets, kept CPU on the dashboard, and required a runbook for every paging alert.
Open with
I'd lay out the dashboard in the order on-call asks questions. At the top, SLO status and RED metrics per endpoint from http.server.requests: request rate, error rate counting 5xx only, and p50, p95 and p99 from the percentile histogram.
Then, if they want more
Then saturation: heap after GC and GC pauses, CPU and throttling, and especially pool usage, Tomcat busy threads and Hikari active and pending connections, because a pool stuck at its maximum is often the first clue. At the bottom, dependencies: http.client.requests latency and errors per downstream service, database timings, Kafka lag and circuit breaker state.
Each row links to traces and logs for the service. For alerts, I'd only page on user-facing symptoms. The best is an SLO burn rate alert with a long and a short window; without an SLO, error rate above five percent for five minutes with a minimum traffic level, or p99 above a threshold.
Causes like pending database connections, heap growth or certificates expiring become tickets, and CPU stays on the dashboard, because high CPU with healthy latency isn't an emergency. Every paging alert has a runbook link as a required field, and the platform ships all of this as templates so new services get it on day one.
About this answer
- Last updated
- 12 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
- Official documentation
- Spring Cloud documentation, Resilience4j documentation
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "Design the default dashboard and alerts for a Spring Boot REST service. What would you...": https://scrivio-interview-library.netlify.app/spring-boot/observability/c14aca0e38/