"rawSql":"SELECT $__timeGroupAlias(time, '5m', previous), avg(value) as value FROM metric WHERE $__timeFilter(time) GROUP BY $__timeGroup(time, '5m') ORDER BY 1",
"refId":"A"
}
],
"thresholds":[],
"timeFrom":null,
"timeShift":null,
"title":"timeGroup macro 5m with fill(previous) and null as zero",
"tooltip":{
"shared":true,
"sort":0,
"value_type":"individual"
},
"type":"graph",
"xaxis":{
"buckets":null,
"mode":"time",
"name":null,
"show":true,
"values":[]
},
"yaxes":[
{
"format":"short",
"label":null,
"logBase":1,
"max":null,
"min":"0",
"show":true
},
{
"format":"short",
"label":null,
"logBase":1,
"max":null,
"min":null,
"show":true
}
],
"yaxis":{
"align":false,
"alignLevel":null
}
},
{
"aliasColors":{},
"bars":true,
@ -587,10 +670,10 @@
"datasource":"gdev-mssql-ds-tests",
"fill":2,
"gridPos":{
"h":9,
"w":8,
"h":6,
"w":6,
"x":0,
"y":16
"y":13
},
"id":16,
"legend":{
@ -670,10 +753,10 @@
"datasource":"gdev-mssql-ds-tests",
"fill":2,
"gridPos":{
"h":9,
"w":8,
"x":8,
"y":16
"h":6,
"w":6,
"x":6,
"y":13
},
"id":12,
"legend":{
@ -753,10 +836,10 @@
"datasource":"gdev-mssql-ds-tests",
"fill":2,
"gridPos":{
"h":9,
"w":8,
"x":16,
"y":16
"h":6,
"w":6,
"x":12,
"y":13
},
"id":13,
"legend":{
@ -828,6 +911,89 @@
"alignLevel":null
}
},
{
"aliasColors":{},
"bars":true,
"dashLength":10,
"dashes":false,
"datasource":"gdev-mssql-ds-tests",
"fill":2,
"gridPos":{
"h":6,
"w":6,
"x":18,
"y":13
},
"id":37,
"legend":{
"avg":false,
"current":false,
"max":false,
"min":false,
"show":true,
"total":false,
"values":false
},
"lines":false,
"linewidth":2,
"links":[],
"nullPointMode":"null",
"percentage":false,
"pointradius":3,
"points":false,
"renderer":"flot",
"seriesOverrides":[],
"spaceLength":10,
"stack":false,
"steppedLine":true,
"targets":[
{
"alias":"",
"format":"time_series",
"rawSql":"SELECT $__timeGroupAlias(time, '$summarize', previous), sum(value) as value FROM metric WHERE $__timeFilter(time) GROUP BY $__timeGroup(time, '$summarize') ORDER BY 1",
"refId":"A"
}
],
"thresholds":[],
"timeFrom":null,
"timeShift":null,
"title":"Metrics - timeGroup macro $summarize with fill(previous)",