Commit 881331b3 authored by MaksimSmile13's avatar MaksimSmile13
Browse files

Merge branch 'fix/grafana_ddash_refid' into 'master'

Fix ddash refid

See merge request noc/noc!4225
parents fdb1a81b cce1e083
......@@ -203,7 +203,7 @@
"datetimeLoading": false,
"intervalFactor": 1,
"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",
"refId": "A",
"refId": "C",
"resultFormat": "time_series",
"table": "sla",
"tableLoading": false
......
......@@ -64,7 +64,7 @@
{
"intervalFactor": 1,
"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",
"refId": "A",
"refId": "B",
"resultFormat": "time_series",
"database": "noc",
"tableLoading": false,
......
......@@ -64,7 +64,7 @@
{
"intervalFactor": 1,
"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",
"refId": "A",
"refId": "B",
"resultFormat": "time_series",
"database": "noc",
"tableLoading": false,
......
{
"title": "Object | SysUptime",
"aliasColors": {},
"bars": false,
"datasource": null,
"fill": 1,
"grid": {},
"id": 3151904820716512,
"legend": {
"alignAsTable": true,
"avg": false,
"current": true,
"max": false,
"min": true,
"show": true,
"sortDesc": true,
"total": false,
"values": true,
"rightSide": false
},
"lines": true,
"linewidth": 2,
"links": [],
"nullPointMode": "connected",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"span": 6,
"stack": false,
"steppedLine": false,
"decimals": 1,
"targets": [
{
"dateTimeColDataType": "ts",
"datetimeLoading": false,
"database": "noc",
"dateLoading": false,
"tableLoading": false,
"dateColDataType": "date",
"table": "object",
"intervalFactor": 1,
"query": "SELECT $timeSeries as t, avg(sys_uptime) as `Uptime` FROM $table WHERE managed_object=$bi_id and $timeFilter GROUP BY t ORDER BY t",
"refId": "A",
"resultFormat": "time_series"
}
],
"timeFrom": null,
"timeShift": null,
"tooltip": {
"msResolution": false,
"shared": true,
"sort": 0,
"value_type": "cumulative"
},
"type": "graph",
"x-axis": true,
"xaxis": {
"show": true
},
"y-axis": false,
"yaxes": [
{
"format": "s",
"label": null,
"logBase": 1,
"max": null,
"min": 0,
"show": true,
"decimals": 1
}, {
"format": null,
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": false
}
]
}
{
"title": "VPN | IPSec | Auth Failed",
"aliasColors": {},
"bars": false,
"datasource": null,
"fill": 1,
"grid": {
"threshold1": null,
"threshold1Color": "rgba(216, 200, 27, 0.27)",
"threshold2": null,
"threshold2Color": "rgba(234, 112, 112, 0.22)"
},
"id": 1552414413515510,
"legend": {
"alignAsTable": true,
"avg": true,
"current": true,
"max": true,
"min": true,
"show": true,
"sortDesc": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 2,
"links": [],
"nullPointMode": "connected",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"alias": "Value",
"color": "#F2495C"
}
],
"span": 6,
"stack": false,
"steppedLine": false,
"targets": [
{
"refId": "A",
"resultFormat": "time_series",
"intervalFactor": 1,
"query": "SELECT $timeSeries as t, avg(ipsec_auth_failed) as Value FROM $table WHERE managed_object = $bi_id and $timeFilter GROUP BY t ORDER BY t",
"database": "noc",
"tableLoading": false,
"table": "vpns",
"dateLoading": false,
"datetimeLoading": false,
"dateColDataType": "date",
"dateTimeColDataType": "ts"
}
],
"timeFrom": null,
"timeShift": null,
"tooltip": {
"msResolution": false,
"shared": true,
"sort": 0,
"value_type": "cumulative"
},
"type": "graph",
"x-axis": true,
"xaxis": {
"show": true
},
"y-axis": true,
"yaxes": [
{
"logBase": 1,
"show": true,
"max": null,
"format": "short",
"min": "0",
"label": null
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": false
}
],
}
......@@ -68,7 +68,7 @@
"intervalFactor": 1,
"interval": "$discovery_interval",
"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",
"refId": "B",
"refId": "D",
"resultFormat": "time_series",
"table": "interface",
"tableLoading": false
......
......@@ -130,7 +130,7 @@
"datetimeLoading": false,
"intervalFactor": 1,
"query": "SELECT $timeSeries as t, avg(usage) as `Cpu | Usage`FROM $table WHERE managed_object=$bi_id and $timeFilter GROUP BY t ORDER BY t",
"refId": "A",
"refId": "B",
"resultFormat": "time_series",
"table": "cpu",
"tableLoading": false
......@@ -214,7 +214,7 @@
"datetimeLoading": false,
"intervalFactor": 1,
"query": "SELECT $timeSeries as t, avg(usage) `Memory | Usage` FROM $table WHERE managed_object=$bi_id and $timeFilter GROUP BY t ORDER BY t",
"refId": "A",
"refId": "C",
"resultFormat": "time_series",
"table": "memory",
"tableLoading": false
......
......@@ -61,7 +61,7 @@
"intervalFactor": 1,
"interval": "$discovery_interval",
"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",
"refId": "B",
"refId": "D",
"resultFormat": "time_series",
"table": "interface",
"tableLoading": false
......
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