From 10d51764dc4b710cb29cda8a29546280e4e6bd48 Mon Sep 17 00:00:00 2001 From: Matthew Stidham Date: Thu, 8 Jul 2021 13:32:17 -0700 Subject: [PATCH] Grafana dashboard needs to filter Influx by testbed Signed-off-by: Matthew Stidham --- py-dashboard/GhostRequest.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/py-dashboard/GhostRequest.py b/py-dashboard/GhostRequest.py index 126d956b..32f25a57 100644 --- a/py-dashboard/GhostRequest.py +++ b/py-dashboard/GhostRequest.py @@ -374,7 +374,8 @@ class GhostRequest: bucket=grafana_bucket, from_date=start_time, to_date=end_time, - pass_fail='GhostRequest') + pass_fail='GhostRequest', + testbed=testbeds[0]) test_pass_fail_results = sum((Counter(test) for test in test_pass_fail), Counter()) @@ -387,7 +388,7 @@ class GhostRequest: short_description = 'Ghost Post Tests passed'#variable name numeric_score = test_pass_fail_results['PASS'] #value tags = dict() - tags['testbed'] = csv_testbed + tags['testbed'] = testbeds[0] tags['script'] = 'GhostRequest' tags['Graph-Group'] = 'PASS' date = now.astimezone().isoformat() #date @@ -396,7 +397,7 @@ class GhostRequest: short_description = 'Ghost Post Tests failed'#variable name numeric_score = test_pass_fail_results['FAIL'] #value tags = dict() - tags['testbed'] = csv_testbed + tags['testbed'] = testbeds[0] tags['script'] = 'GhostRequest' tags['Graph-Group'] = 'FAIL' date = now.astimezone().isoformat() #date