From e4fc622539c0c8805676f10a77240874b10c3135 Mon Sep 17 00:00:00 2001 From: Gresille&Siffle <39056254+GresilleSiffle@users.noreply.github.com> Date: Tue, 12 Dec 2023 10:53:30 +0100 Subject: [PATCH] [infra] refactor: set interval to 2min for 95th percentile of Request Time --- .../templates/defaultEvaluationGroup.yaml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/ansible/roles/grafana_provisioning/templates/defaultEvaluationGroup.yaml.j2 b/infra/ansible/roles/grafana_provisioning/templates/defaultEvaluationGroup.yaml.j2 index 97cbe530d2..aa6cfbec9e 100644 --- a/infra/ansible/roles/grafana_provisioning/templates/defaultEvaluationGroup.yaml.j2 +++ b/infra/ansible/roles/grafana_provisioning/templates/defaultEvaluationGroup.yaml.j2 @@ -20,7 +20,7 @@ groups: type: loki uid: {{grafana.datasource_loki_uid}} editorMode: code - expr: quantile_over_time(0.95,{filename="/var/log/nginx/json_access.log", host="localhost"} | json | unwrap request_time | __error__="" | http_host!="grafana.staging.tournesol.app" [30s]) by (host) + expr: quantile_over_time(0.95,{filename="/var/log/nginx/json_access.log", host="localhost"} | json | unwrap request_time | __error__="" | http_host!="grafana.staging.tournesol.app" [120s]) by (host) intervalMs: 30000 legendFormat: 95th percentile maxDataPoints: 43200