Relative Content

Tag Archive for grafanagrafana-lokilogql

How to extract metrics of number of busy application instances based on logFmt log entries with different start/end contens in Grafana + Loki

I’m using Grafana + Loki for monitoring operation of an application that generates logs in logFmt format. The application outputs log entries with different text patterns when it starts and ends processing a request, let’s say, msg="Started processing request" and msg="Completed processing request". An instance is considered busy for the time interval between these two messages.