"query": "SELECT \n $timeSeries as t, \n avg(icmp_rtt), \n avg(jitter) \nFROM $table \nWHERE \n managed_object=$bi_id \n and $timeFilter \n and path[1]=toString($probe)\nGROUP BY t \nORDER BY t",
"query": "SELECT \n\t$timeSeries as t,\n\tavg(discards_out) as `Discards Out` \nFROM \n\t$table \nWHERE \n\tmanaged_object = $bi_id \n\tand path[4]=toString('{{interface.port.name}}') \n\tand $timeFilter \nGROUP BY t ORDER BY t",
"query": "SELECT \n\t$timeSeries as t,\n\tavg(errors_out) as `Error Out` \nFROM \n\t$table \nWHERE \n\tmanaged_object = $bi_id \n\tand path[4]=toString('{{interface.port.name}}') \n\tand $timeFilter \nGROUP BY t ORDER BY t",
"query": "SELECT \n\tt, \n\tgroupArray((concat('Discards In ',path), d)) AS groupArr\nFROM \n\t( SELECT \n\t\t$timeSeries as t, \n\t\tpath[4] as path, \n\t\tavg(discards_in) d \n\t\tfrom noc.interface \n\t\tWHERE \n\t\t\t$timeFilter\n\t\t\tAND managed_object= $bi_id \n\t\tGROUP BY t, path\n\t\thaving d > 0\n\t\tORDER BY t\n\t) \nGROUP BY t \nORDER BY t",
"refId": "A",
"refId": "B",
"resultFormat": "time_series",
"table": "interface",
"tableLoading": false
...
...
@@ -82,7 +82,7 @@
"intervalFactor": 1,
"interval": "$discovery_interval",
"query": "SELECT \n\tt, \n\tgroupArray((concat('Errors Out ',path), d)) AS groupArr\nFROM \n\t( SELECT \n\t\t$timeSeries as t, \n\t\tpath[4] as path, \n\t\tavg(errors_out) d \n\t\tfrom noc.interface \n\t\tWHERE \n\t\t\t$timeFilter\n\t\t\tAND managed_object= $bi_id \n\t\tGROUP BY t, path\n\t\thaving d > 0\n\t\tORDER BY t\n\t) \nGROUP BY t \nORDER BY t",
"refId": "B",
"refId": "C",
"resultFormat": "time_series",
"table": "interface",
"tableLoading": false
...
...
@@ -96,7 +96,7 @@
"intervalFactor": 1,
"interval": "$discovery_interval",
"query": "SELECT \n\tt, \n\tgroupArray((concat('Errors In ',path), d)) AS groupArr\nFROM \n\t( SELECT \n\t\t$timeSeries as t, \n\t\tpath[4] as path, \n\t\tavg(errors_in) d \n\t\tfrom noc.interface \n\t\tWHERE \n\t\t\t$timeFilter\n\t\t\tAND managed_object= $bi_id \n\t\tGROUP BY t, path\n\t\thaving d > 0\n\t\tORDER BY t\n\t) \nGROUP BY t \nORDER BY t",
"query": "SELECT \n\tt, \n\tgroupArray((concat('Discars In ',path[4]), d)) AS groupArr\nFROM \n\t( SELECT \n\t\t$timeSeries t, \n\t\tpath, \n\t\tavg(discards_in) d \n\t\tfrom noc.interface \n\t\tWHERE \n\t\t\t$timeFilter\n\t\t\tAND managed_object= $bi_id \n\t\tGROUP BY t, path\n\t\thaving d > 0\n\t\tORDER BY t\n\t) \nGROUP BY t \nORDER BY t",
"refId": "A",
"refId": "B",
"resultFormat": "time_series",
"table": "interface",
"tableLoading": false
...
...
@@ -76,7 +76,7 @@
"intervalFactor": 1,
"interval": "$discovery_interval",
"query": "SELECT \n\tt, \n\tgroupArray((concat('Errors Out ',path[4]), d)) AS groupArr\nFROM \n\t( SELECT \n\t$timeSeries as t, \n\t\tpath, \n\t\tavg(errors_out) d \n\t\tfrom noc.interface \n\t\tWHERE \n\t\t\t$timeFilter\n\t\t\tAND managed_object= $bi_id \n\t\tGROUP BY t, path\n\t\thaving d > 0\n\t\tORDER BY t\n\t) \nGROUP BY t \nORDER BY t",
"refId": "B",
"refId": "C",
"resultFormat": "time_series",
"table": "interface",
"tableLoading": false
...
...
@@ -91,7 +91,7 @@
"intervalFactor": 1,
"interval": "$discovery_interval",
"query": "SELECT \n\tt, \n\tgroupArray((concat('Errors In ',path[4]), d)) AS groupArr\nFROM \n\t( SELECT \n\t$timeSeries as t, \n\t\tpath, \n\t\tavg(errors_in) d \n\t\tfrom noc.interface \n\t\tWHERE \n\t\t\t$timeFilter\n\t\t\tAND managed_object= $bi_id \n\t\tGROUP BY t, path\n\t\thaving d > 0\n\t\tORDER BY t\n\t) \nGROUP BY t \nORDER BY t",