Interview Prep/Monitoring & Observability/Rapid-Fire PromQL & LogQL

LogQL: show only JSON logs with HTTP status 500 or above for the checkout service?

IntermediateProductionRapid-Fire PromQL & LogQL
Answer
{namespace="prod", app="checkout"} | json | __error__="" | status >= 500

json extracts fields as labels at query time, __error__="" drops lines that failed to parse, and the numeric comparison filters on the extracted status.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Rapid-Fire PromQL & LogQL