"rawSql":"SELECT $__timeGroup(time, '$summarize') AS time, avg(value) as value FROM metric WHERE $__timeFilter(time) GROUP BY $__timeGroup(time, '$summarize') ORDER BY 1",
"rawSql":"SELECT $__timeGroup(time, '5m') AS time, avg(value) as value FROM metric WHERE $__timeFilter(time) GROUP BY $__timeGroup(time, '5m') ORDER BY 1",
"refId":"A"
"refId":"A"
}
}
],
],
"thresholds":[],
"thresholds":[],
"timeFrom":null,
"timeFrom":null,
"timeShift":null,
"timeShift":null,
"title":"Metrics - timeGroup macro $summarize without fill",
"title":"Metrics - timeGroup macro 5m without fill",
"tooltip":{
"tooltip":{
"shared":true,
"shared":true,
"sort":0,
"sort":0,
...
@@ -244,14 +244,14 @@
...
@@ -244,14 +244,14 @@
{
{
"alias":"",
"alias":"",
"format":"time_series",
"format":"time_series",
"rawSql":"SELECT $__timeGroup(time, '$summarize', NULL) AS time, avg(value) as value FROM metric WHERE $__timeFilter(time) GROUP BY $__timeGroup(time, '$summarize') ORDER BY 1",
"rawSql":"SELECT $__timeGroup(time, '5m', NULL) AS time, avg(value) as value FROM metric WHERE $__timeFilter(time) GROUP BY $__timeGroup(time, '5m') ORDER BY 1",
"refId":"A"
"refId":"A"
}
}
],
],
"thresholds":[],
"thresholds":[],
"timeFrom":null,
"timeFrom":null,
"timeShift":null,
"timeShift":null,
"title":"Metrics - timeGroup macro $summarize with fill(NULL) and null as zero",
"title":"Metrics - timeGroup macro 5m with fill(NULL) and null as zero",
"tooltip":{
"tooltip":{
"shared":true,
"shared":true,
"sort":0,
"sort":0,
...
@@ -323,14 +323,14 @@
...
@@ -323,14 +323,14 @@
{
{
"alias":"",
"alias":"",
"format":"time_series",
"format":"time_series",
"rawSql":"SELECT $__timeGroup(time, '$summarize', 10.0) AS time, avg(value) as value FROM metric WHERE $__timeFilter(time) GROUP BY $__timeGroup(time, '$summarize') ORDER BY 1",
"rawSql":"SELECT $__timeGroup(time, '5m', 10.0) AS time, avg(value) as value FROM metric WHERE $__timeFilter(time) GROUP BY $__timeGroup(time, '5m') ORDER BY 1",
"refId":"A"
"refId":"A"
}
}
],
],
"thresholds":[],
"thresholds":[],
"timeFrom":null,
"timeFrom":null,
"timeShift":null,
"timeShift":null,
"title":"Metrics - timeGroup macro $summarize with fill(10.0)",
"title":"Metrics - timeGroup macro 5m with fill(10.0)",
"tooltip":{
"tooltip":{
"shared":true,
"shared":true,
"sort":0,
"sort":0,
...
@@ -613,6 +613,170 @@
...
@@ -613,6 +613,170 @@
"x":0,
"x":0,
"y":22
"y":22
},
},
"id":27,
"legend":{
"alignAsTable":true,
"avg":true,
"current":true,
"hideEmpty":false,
"hideZero":false,
"max":true,
"min":true,
"rightSide":true,
"show":true,
"total":true,
"values":true
},
"lines":true,
"linewidth":2,
"links":[],
"nullPointMode":"null",
"percentage":false,
"pointradius":3,
"points":false,
"renderer":"flot",
"seriesOverrides":[],
"spaceLength":10,
"stack":false,
"steppedLine":false,
"targets":[
{
"alias":"",
"format":"time_series",
"rawSql":"SELECT \n $__timeGroup(time, '$summarize') as time, \n measurement as metric, \n avg(valueOne) as valueOne, \n avg(valueTwo) as valueTwo \nFROM\n metric_values \nGROUP BY \n $__timeGroup(time, '$summarize'), \n measurement \nORDER BY 1",
"refId":"A"
}
],
"thresholds":[],
"timeFrom":null,
"timeShift":null,
"title":"Multiple series with metric column using timeGroup macro ($summarize)",
"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
}
]
},
{
"aliasColors":{},
"bars":false,
"dashLength":10,
"dashes":false,
"datasource":"${DS_MSSQL_TEST}",
"fill":2,
"gridPos":{
"h":8,
"w":12,
"x":12,
"y":22
},
"id":5,
"legend":{
"alignAsTable":true,
"avg":true,
"current":true,
"max":true,
"min":true,
"rightSide":true,
"show":true,
"total":true,
"values":true
},
"lines":true,
"linewidth":2,
"links":[],
"nullPointMode":"null",
"percentage":false,
"pointradius":3,
"points":false,
"renderer":"flot",
"seriesOverrides":[],
"spaceLength":10,
"stack":false,
"steppedLine":false,
"targets":[
{
"alias":"",
"format":"time_series",
"rawSql":"SELECT \n $__timeGroup(time, '$summarize') as time, \n avg(valueOne) as valueOne, \n avg(valueTwo) as valueTwo \nFROM\n metric_values \nGROUP BY \n $__timeGroup(time, '$summarize')\nORDER BY 1",
"refId":"A"
}
],
"thresholds":[],
"timeFrom":null,
"timeShift":null,
"title":"Multiple series without metric column using timeGroup macro ($summarize)",