From afb7bcee213ae062c3699bd0830d7ddd2bd24e55 Mon Sep 17 00:00:00 2001 From: Cyril Tovena Date: Fri, 24 Apr 2020 09:12:17 -0400 Subject: [PATCH] Log slow query from the frontend by default in ksonnet. Signed-off-by: Cyril Tovena --- production/ksonnet/loki/config.libsonnet | 1 + 1 file changed, 1 insertion(+) diff --git a/production/ksonnet/loki/config.libsonnet b/production/ksonnet/loki/config.libsonnet index 5a90df7df19e2..f3f76b46f5296 100644 --- a/production/ksonnet/loki/config.libsonnet +++ b/production/ksonnet/loki/config.libsonnet @@ -105,6 +105,7 @@ frontend: { compress_responses: true, max_outstanding_per_tenant: 200, + log_queries_longer_than: '5s', }, frontend_worker: { frontend_address: 'query-frontend.%s.svc.cluster.local:9095' % $._config.namespace,