Skip to content

Commit

Permalink
chore: grafana#6
Browse files Browse the repository at this point in the history
  • Loading branch information
jwcastillo committed Aug 13, 2022
1 parent 3c07b27 commit 078227b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 7 deletions.
30 changes: 28 additions & 2 deletions samples/dashboard-tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"fiscalYearStartMonth": 0,
"gnetId": null,
"graphTooltip": 0,
"iteration": 1660379214003,
"links": [],
"liveNow": false,
"panels": [
Expand Down Expand Up @@ -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 != '<all>' THEN tags->>'testid' = $testid ELSE true END\nGROUP BY 1\nORDER BY 3 DESC, 2 DESC",
"refId": "A",
"select": [
[
Expand Down Expand Up @@ -143,7 +144,32 @@
"style": "dark",
"tags": [],
"templating": {
"list": []
"list": [
{
"allValue": "'<all>'",
"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",
Expand Down
10 changes: 5 additions & 5 deletions samples/grafana_dashboard_timescaledb.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"fiscalYearStartMonth": 0,
"gnetId": null,
"graphTooltip": 0,
"iteration": 1660371623705,
"iteration": 1660378136642,
"links": [],
"liveNow": false,
"panels": [
Expand Down Expand Up @@ -1820,8 +1820,8 @@
"allValue": "'<all>'",
"current": {
"selected": false,
"text": "http_2-1660369994",
"value": "http_2-1660369994"
"text": "http_2-1660378082",
"value": "http_2-1660378082"
},
"datasource": "mytimescaledb",
"definition": "",
Expand All @@ -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": [
Expand Down

0 comments on commit 078227b

Please sign in to comment.