From e2e2beff4063642559f77a59a9738839f27ec22f Mon Sep 17 00:00:00 2001
From: Leonidas Spyropoulos <artafinde@archlinux.org>
Date: Wed, 10 Aug 2022 13:59:45 +0300
Subject: [PATCH] grafana: filter http requests total for aur on job

http_requests_total  contains requests from debuginfo.al.org host
as well as from aur.al.org so filter them on job 'aurweb'

Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>
---
 roles/grafana/files/dashboards/aur.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/roles/grafana/files/dashboards/aur.json b/roles/grafana/files/dashboards/aur.json
index fac45789f..798d13f6e 100644
--- a/roles/grafana/files/dashboards/aur.json
+++ b/roles/grafana/files/dashboards/aur.json
@@ -105,7 +105,7 @@
             "uid": "PBFA97CFB590B2093"
           },
           "exemplar": true,
-          "expr": "rate(http_requests_total[5m])",
+          "expr": "rate(http_requests_total{job=\"aurweb\"}[5m])",
           "interval": "",
           "legendFormat": "{{ path }} {{ status }}",
           "refId": "A"
-- 
GitLab