From 078227b4d0196af6dcad6cc954a112c65a80f20d Mon Sep 17 00:00:00 2001 From: jwcastillo Date: Sat, 13 Aug 2022 09:33:17 -0400 Subject: [PATCH] chore: #6 --- samples/dashboard-tests.json | 30 ++++++++++++++++++++-- samples/grafana_dashboard_timescaledb.json | 10 ++++---- 2 files changed, 33 insertions(+), 7 deletions(-) diff --git a/samples/dashboard-tests.json b/samples/dashboard-tests.json index 03d30ae..9094581 100644 --- a/samples/dashboard-tests.json +++ b/samples/dashboard-tests.json @@ -22,6 +22,7 @@ "fiscalYearStartMonth": 0, "gnetId": null, "graphTooltip": 0, + "iteration": 1660379214003, "links": [], "liveNow": false, "panels": [ @@ -102,7 +103,7 @@ "hide": false, "metricColumn": "none", "rawQuery": true, - "rawSql": "SELECT distinct tags->>'testid' as test_id, min(ts) as start, max(ts) as end, \n ('/d/a21-pyAWz/open-source-load-testing-stack?orgId=1&var-testid='\n || cast(tags->>'testid' as text)\n || '&from='\n || extract(epoch from date_trunc('second', min(ts)))*1000\n || '&to=' || extract(epoch from date_trunc('second', max(ts)))*1000) as url\nFROM samples\nGROUP BY 1\nORDER BY 3 DESC, 2 DESC", + "rawSql": "SELECT distinct tags->>'testid' as test_id, min(ts) as start, max(ts) as end, \n ('/d/a21-pyAWz/open-source-load-testing-stack?orgId=1&var-testid='\n || cast(tags->>'testid' as text)\n || '&from='\n || extract(epoch from date_trunc('second', min(ts)))*1000\n || '&to=' || extract(epoch from date_trunc('second', max(ts)))*1000) as url\nFROM samples\nWHERE CASE WHEN $testid != '' THEN tags->>'testid' = $testid ELSE true END\nGROUP BY 1\nORDER BY 3 DESC, 2 DESC", "refId": "A", "select": [ [ @@ -143,7 +144,32 @@ "style": "dark", "tags": [], "templating": { - "list": [] + "list": [ + { + "allValue": "''", + "current": { + "selected": true, + "text": "All", + "value": "$__all" + }, + "datasource": "mytimescaledb", + "definition": "SELECT DISTINCT tags->>'testid' AS \"id\" FROM samples WHERE metric = 'vus';", + "description": null, + "error": null, + "hide": 0, + "includeAll": true, + "label": "Test ID", + "multi": false, + "name": "testid", + "options": [], + "query": "SELECT DISTINCT tags->>'testid' AS \"id\" FROM samples WHERE metric = 'vus';", + "refresh": 2, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + } + ] }, "time": { "from": "now-6h", diff --git a/samples/grafana_dashboard_timescaledb.json b/samples/grafana_dashboard_timescaledb.json index 7862252..9bbdcea 100644 --- a/samples/grafana_dashboard_timescaledb.json +++ b/samples/grafana_dashboard_timescaledb.json @@ -22,7 +22,7 @@ "fiscalYearStartMonth": 0, "gnetId": null, "graphTooltip": 0, - "iteration": 1660371623705, + "iteration": 1660378136642, "links": [], "liveNow": false, "panels": [ @@ -1820,8 +1820,8 @@ "allValue": "''", "current": { "selected": false, - "text": "http_2-1660369994", - "value": "http_2-1660369994" + "text": "http_2-1660378082", + "value": "http_2-1660378082" }, "datasource": "mytimescaledb", "definition": "", @@ -1846,8 +1846,8 @@ ] }, "time": { - "from": "2022-08-13T05:53:17.000Z", - "to": "2022-08-13T05:53:26.000Z" + "from": "2022-08-13T08:08:04.000Z", + "to": "2022-08-13T08:08:14.000Z" }, "timepicker": { "refresh_intervals": [