LogQL: error lines per app per minute in production?
BeginnerProductionRapid-Fire PromQL & LogQL
Answer
sum by (app) (count_over_time({namespace="prod"} |= "error" [1m]))
The stream selector narrows streams using the index; the |= line filter is a fast substring match applied before any parsing.
More on Rapid-Fire PromQL & LogQL
Requests per second per service over the last 5 minutes?BeginnerPercentage of 5xx responses per service?Beginnerp99 latency per route from a histogram?IntermediateTop 5 pods by CPU usage in a namespace?BeginnerMemory working set as a percentage of the container limit?IntermediateWhich scrape targets are down right now?Beginner