"rawSql":"SELECT $__timeGroup(time, '5m') AS time, avg(value) as value FROM metric WHERE $__timeFilter(time) GROUP BY 1 ORDER BY 1",
"rawSql":"SELECT $__timeGroupAlias(time, '5m'), avg(value) as value FROM metric WHERE $__timeFilter(time) GROUP BY 1 ORDER BY 1",
"refId":"A"
"refId":"A"
}
}
],
],
...
@@ -452,7 +452,7 @@
...
@@ -452,7 +452,7 @@
{
{
"alias":"",
"alias":"",
"format":"time_series",
"format":"time_series",
"rawSql":"SELECT $__timeGroup(time, '5m', NULL) AS time, avg(value) as value FROM metric WHERE $__timeFilter(time) GROUP BY 1 ORDER BY 1",
"rawSql":"SELECT $__timeGroupAlias(time, '5m', NULL), avg(value) as value FROM metric WHERE $__timeFilter(time) GROUP BY 1 ORDER BY 1",
"refId":"A"
"refId":"A"
}
}
],
],
...
@@ -535,7 +535,7 @@
...
@@ -535,7 +535,7 @@
{
{
"alias":"",
"alias":"",
"format":"time_series",
"format":"time_series",
"rawSql":"SELECT $__timeGroup(time, '5m', 10.0) AS time, avg(value) as value FROM metric WHERE $__timeFilter(time) GROUP BY 1 ORDER BY 1",
"rawSql":"SELECT $__timeGroupAlias(time, '5m', 10.0), avg(value) as value FROM metric WHERE $__timeFilter(time) GROUP BY 1 ORDER BY 1",
"refId":"A"
"refId":"A"
}
}
],
],
...
@@ -618,7 +618,7 @@
...
@@ -618,7 +618,7 @@
{
{
"alias":"",
"alias":"",
"format":"time_series",
"format":"time_series",
"rawSql":"SELECT $__timeGroup(time, '$summarize') AS time, avg(value) as value FROM metric WHERE $__timeFilter(time) GROUP BY 1 ORDER BY 1",
"rawSql":"SELECT $__timeGroupAlias(time, '$summarize'), avg(value) as value FROM metric WHERE $__timeFilter(time) GROUP BY 1 ORDER BY 1",
"refId":"A"
"refId":"A"
}
}
],
],
...
@@ -701,7 +701,7 @@
...
@@ -701,7 +701,7 @@
{
{
"alias":"",
"alias":"",
"format":"time_series",
"format":"time_series",
"rawSql":"SELECT $__timeGroup(time, '$summarize', NULL) AS time, sum(value) as value FROM metric WHERE $__timeFilter(time) GROUP BY 1 ORDER BY 1",
"rawSql":"SELECT $__timeGroupAlias(time, '$summarize', NULL), sum(value) as value FROM metric WHERE $__timeFilter(time) GROUP BY 1 ORDER BY 1",
"refId":"A"
"refId":"A"
}
}
],
],
...
@@ -784,7 +784,7 @@
...
@@ -784,7 +784,7 @@
{
{
"alias":"",
"alias":"",
"format":"time_series",
"format":"time_series",
"rawSql":"SELECT $__timeGroup(time, '$summarize', 100.0) AS time, sum(value) as value FROM metric WHERE $__timeFilter(time) GROUP BY 1 ORDER BY 1",
"rawSql":"SELECT $__timeGroupAlias(time, '$summarize', 100.0), sum(value) as value FROM metric WHERE $__timeFilter(time) GROUP BY 1 ORDER BY 1",
"refId":"A"
"refId":"A"
}
}
],
],
...
@@ -956,7 +956,7 @@
...
@@ -956,7 +956,7 @@
{
{
"alias":"",
"alias":"",
"format":"time_series",
"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 \nWHERE\n $__timeFilter(time) AND\n measurement in($metric)\nGROUP BY 1\nORDER BY 1",
"rawSql":"SELECT \n $__timeGroupAlias(time, '$summarize'), \n avg(\"valueOne\") as \"valueOne\", \n avg(\"valueTwo\") as \"valueTwo\"\nFROM\n metric_values \nWHERE\n $__timeFilter(time) AND\n measurement in($metric)\nGROUP BY 1\nORDER BY 1",