Commit 30ecda66 authored by Andrey Vertiprahov's avatar Andrey Vertiprahov
Browse files

Merge branch 'fix-avs-graph-dashboard-214' into 'microservices'

Fix some dashboard graph panel.

See merge request !1186
parents 6870ef9b f26fe864
Pipeline #8147 passed with stages
in 6 minutes and 7 seconds
......@@ -59,7 +59,7 @@
"dateTimeColDataType": "ts",
"datetimeLoading": false,
"intervalFactor": 1,
"query": "SELECT \n t, \n groupArray((concat('Video | Record | Status ',p), d)) AS groupArr\n FROM \n ( SELECT \n $timeSeries as t, \n path[3] as p, \n avg(video_record) d \n from $table \n WHERE \n $timeFilter\n AND managed_object=$bi_id\n AND path[3] in ('Sub', 'Pri')\n GROUP BY t, path[3]\n ORDER BY t\n ) \nGROUP BY t \nORDER BY t",
"query": "SELECT \n t, \n groupArray((concat('Video | Record | Status ',p), d)) AS groupArr\n FROM \n ( SELECT \n $timeSeries as t, \n path[3] as p, \n avg(video_record_status) d \n from $table \n WHERE \n $timeFilter\n AND managed_object=$bi_id\n AND path[3] in ('Sub', 'Pri')\n GROUP BY t, path[3]\n ORDER BY t\n ) \nGROUP BY t \nORDER BY t",
"refId": "A",
"resultFormat": "time_series",
"table": "video",
......
......@@ -46,7 +46,7 @@
"datetimeLoading": false,
"intervalFactor": 1,
"interval": "$discovery_interval",
"query": "SELECT \n\tt, \n\tgroupArray((concat('Discars ',path[4]), d)) AS groupArr\nFROM \n\t( SELECT \n\t\t$timeSeries t, \n\t\tpath[4], \n\t\tavg(discards_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",
"query": "SELECT \n\tt, \n\tgroupArray((concat('Discars ',path[4]), d)) AS groupArr\nFROM \n\t( SELECT \n\t\t$timeSeries t, \n\t\tpath, \n\t\tavg(discards_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": "A",
"resultFormat": "time_series",
"table": "interface",
......@@ -61,7 +61,7 @@
"hide": false,
"intervalFactor": 1,
"interval": "$discovery_interval",
"query": "SELECT \n\tt, \n\tgroupArray((concat('Errors ',path[4]), d)) AS groupArr\nFROM \n\t( SELECT \n\t$timeSeries as t, \n\t\tpath[4], \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('Errors ',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",
"refId": "B",
"resultFormat": "time_series",
"table": "interface",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment