Level 1 · Apprentice0 XP
Health, metrics, logs and traces: how you find out what is wrong before the users do.
Step 1 / 5
ProblemA customer reports that checkout is slow sometimes. There are no numbers. The logs are free text on six servers. Nobody can say whether it is the database, the payment provider or one bad instance.
← → step
Before this: Messaging with Kafka in Spring
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.Add Actuator, expose health, metrics and prometheus, and enable the probes. Add one custom counter for a business event and one timer around a slow call. Call the endpoints and find your metric. Then write the one alert you would set and why.