How did you handle logging in your project?
BeginnerBehavioralMonitoring, incidents & measuring success
Answer
Good answer looks like → "Apps logged structured JSON to stdout with a request ID and trace ID in every line. A DaemonSet agent shipped logs to Loki, labelled by namespace, app and pod. We kept 14 days hot and 90 days in S3. Debug logging was off by default and could be enabled per service via a config flag."
Follow-ups to expect → How did you avoid high-cardinality labels in Loki? How did you keep PII out of logs?
Red flags → Logs written to files inside containers.
More on Monitoring, incidents & measuring success
How did you measure the success of your project?IntermediateWhat did your monitoring stack look like?BeginnerWhat did you alert on?IntermediateWhat SLOs did your services have and how did you choose them?AdvancedTell me about a production incident in this project and how you handled it.IntermediateHow did you run postmortems in your team?Beginner