"rawSql":"SELECT\n $__timeGroup(interval_time, $__interval) as time,\n sum(updates) as updates,sum(withdraws) as withdraws\nFROM stats_l3vpn_chg_bypeer s\n JOIN v_peers p ON (s.peer_hash_id = p.peer_hash_id)\nWHERE $__timeFilter(interval_time)\n AND s.peer_hash_id in ($peer_hash)\nGROUP BY time\nORDER BY time ASC\n\n",
"refId":"A",
"select":[
[
{
"params":[
"value"
],
"type":"column"
}
]
],
"timeColumn":"time",
"where":[
{
"name":"$__timeFilter",
"params":[],
"type":"macro"
}
]
}
],
"title":"Advertisements & Withdrawals",
"type":"timeseries"
},
{
"datasource":{
"type":"postgres",
"uid":"obmp_postgres"
},
"fieldConfig":{
"defaults":{
"color":{
"mode":"palette-classic"
},
"custom":{
"axisLabel":"Count of Updates",
"axisPlacement":"auto",
"barAlignment":0,
"drawStyle":"line",
"fillOpacity":10,
"gradientMode":"none",
"hideFrom":{
"legend":false,
"tooltip":false,
"viz":false
},
"lineInterpolation":"linear",
"lineWidth":1,
"pointSize":5,
"scaleDistribution":{
"type":"linear"
},
"showPoints":"never",
"spanNulls":true,
"stacking":{
"group":"A",
"mode":"none"
},
"thresholdsStyle":{
"mode":"off"
}
},
"links":[],
"mappings":[],
"thresholds":{
"mode":"absolute",
"steps":[
{
"color":"green",
"value":null
},
{
"color":"red",
"value":80
}
]
},
"unit":"locale"
},
"overrides":[]
},
"gridPos":{
"h":7,
"w":12,
"x":0,
"y":6
},
"id":4,
"interval":"15m",
"links":[],
"options":{
"legend":{
"calcs":[
"mean",
"max"
],
"displayMode":"table",
"placement":"right"
},
"tooltip":{
"mode":"single",
"sort":"none"
}
},
"pluginVersion":"8.0.5",
"targets":[
{
"alias":"",
"datasource":{
"type":"postgres",
"uid":"obmp_postgres"
},
"format":"time_series",
"group":[],
"hide":false,
"metricColumn":"none",
"rawQuery":true,
"rawSql":"SELECT\n $__timeGroup(interval_time, $__interval) as time,\n sum(updates),\n p.PeerName as metric\n FROM stats_l3vpn_chg_bypeer l\n JOIN v_peers p ON (p.peer_hash_id = l.peer_hash_id)\n WHERE $__timeFilter(interval_time)\n AND l.peer_hash_id in ($peer_hash)\n GROUP BY peername,time\n order by time asc\n",
"refId":"A",
"select":[
[
{
"params":[
"value"
],
"type":"column"
}
]
],
"timeColumn":"time",
"where":[
{
"name":"$__timeFilter",
"params":[],
"type":"macro"
}
]
}
],
"title":"Updates by Peer",
"type":"timeseries"
},
{
"datasource":{
"type":"postgres",
"uid":"obmp_postgres"
},
"fieldConfig":{
"defaults":{
"color":{
"mode":"palette-classic"
},
"custom":{
"axisLabel":"Count of Updates",
"axisPlacement":"auto",
"barAlignment":0,
"drawStyle":"line",
"fillOpacity":10,
"gradientMode":"none",
"hideFrom":{
"legend":false,
"tooltip":false,
"viz":false
},
"lineInterpolation":"linear",
"lineWidth":1,
"pointSize":5,
"scaleDistribution":{
"type":"linear"
},
"showPoints":"never",
"spanNulls":true,
"stacking":{
"group":"A",
"mode":"none"
},
"thresholdsStyle":{
"mode":"off"
}
},
"links":[],
"mappings":[],
"thresholds":{
"mode":"absolute",
"steps":[
{
"color":"green",
"value":null
},
{
"color":"red",
"value":80
}
]
},
"unit":"locale"
},
"overrides":[]
},
"gridPos":{
"h":7,
"w":12,
"x":12,
"y":6
},
"id":5,
"links":[],
"options":{
"legend":{
"calcs":[
"mean",
"max"
],
"displayMode":"table",
"placement":"right"
},
"tooltip":{
"mode":"single",
"sort":"none"
}
},
"pluginVersion":"8.0.5",
"targets":[
{
"alias":"",
"datasource":{
"type":"postgres",
"uid":"obmp_postgres"
},
"format":"time_series",
"group":[],
"hide":false,
"metricColumn":"none",
"rawQuery":true,
"rawSql":"SELECT\n $__timeGroup(interval_time, $__interval) as time,\n sum(withdraws),\n p.PeerName as metric\n FROM stats_l3vpn_chg_bypeer l\n JOIN v_peers p ON (p.peer_hash_id = l.peer_hash_id)\n WHERE $__timeFilter(interval_time)\n AND l.peer_hash_id in ($peer_hash)\n group by peername,time\n order by time",
"rawSql":" SELECT\n rd,\n sum(updates) as \"Updates\"\n FROM stats_l3vpn_chg_byrd l\n WHERE $__timeFilter(interval_time)\n AND peer_hash_id in ($peer_hash)\n GROUP BY rd\n order by \"Updates\" desc\n LIMIT 20",
"refId":"A",
"select":[
[
{
"params":[
"value"
],
"type":"column"
}
]
],
"timeColumn":"time",
"where":[
{
"name":"$__timeFilter",
"params":[],
"type":"macro"
}
]
}
],
"title":"Top Updates by RD",
"type":"table"
},
{
"datasource":{
"type":"postgres",
"uid":"obmp_postgres"
},
"fieldConfig":{
"defaults":{
"color":{
"mode":"thresholds"
},
"custom":{
"align":"auto",
"displayMode":"auto",
"inspect":false
},
"links":[],
"mappings":[],
"thresholds":{
"mode":"percentage",
"steps":[
{
"color":"green",
"value":null
},
{
"color":"#EAB839",
"value":20
},
{
"color":"red",
"value":60
}
]
},
"unit":"locale"
},
"overrides":[
{
"matcher":{
"id":"byName",
"options":"Withdraws"
},
"properties":[
{
"id":"custom.displayMode",
"value":"gradient-gauge"
}
]
},
{
"matcher":{
"id":"byName",
"options":"rd"
},
"properties":[
{
"id":"custom.align",
"value":"left"
},
{
"id":"unit",
"value":"none"
}
]
}
]
},
"gridPos":{
"h":7,
"w":12,
"x":12,
"y":13
},
"id":11,
"links":[],
"options":{
"footer":{
"fields":"",
"reducer":[
"sum"
],
"show":false
},
"showHeader":true,
"sortBy":[]
},
"pluginVersion":"8.5.4",
"targets":[
{
"alias":"",
"datasource":{
"type":"postgres",
"uid":"obmp_postgres"
},
"format":"table",
"group":[],
"hide":false,
"metricColumn":"none",
"rawQuery":true,
"rawSql":" SELECT\n rd,\n sum(withdraws) as \"Withdraws\"\n FROM stats_l3vpn_chg_byrd l\n WHERE $__timeFilter(interval_time)\n AND peer_hash_id in ($peer_hash)\n GROUP BY rd\n order by \"Withdraws\" desc\n LIMIT 20",
"rawSql":"SELECT\n rd,prefix,\n sum(updates) as \"Updates\"\n FROM stats_l3vpn_chg_byprefix l\n WHERE $__timeFilter(interval_time)\n AND peer_hash_id in ($peer_hash)\n GROUP BY rd,prefix\n order by \"Updates\" desc\nLIMIT 60\n",
"rawSql":"SELECT\n rd,prefix,\n sum(withdraws) as \"Withdraws\"\n FROM stats_l3vpn_chg_byprefix l\n WHERE $__timeFilter(interval_time)\n AND peer_hash_id in ($peer_hash)\n GROUP BY rd,prefix\n order by \"Withdraws\" desc\nLIMIT 60\n",
"definition":"select routername as __text, router_hash_id as __value from v_peers where router_state = 'up' and recvcapabilities like '% afi=1 safi=128 %';",
"hide":0,
"includeAll":true,
"label":"Filter by Router",
"multi":true,
"name":"router_hash",
"options":[],
"query":"select routername as __text, router_hash_id as __value from v_peers where router_state = 'up' and recvcapabilities like '% afi=1 safi=128 %';",
"refresh":1,
"regex":"",
"skipUrlSync":false,
"sort":1,
"tagValuesQuery":"",
"tagsQuery":"",
"type":"query",
"useTags":false
},
{
"current":{
"selected":false,
"text":"All",
"value":"$__all"
},
"datasource":{
"type":"postgres",
"uid":"obmp_postgres"
},
"definition":"select peername as __text, peer_hash_id as __value from v_peers where router_hash_id in ($router_hash) and recvcapabilities like '% afi=1 safi=128 %';",
"hide":0,
"includeAll":true,
"label":"Peer",
"multi":true,
"name":"peer_hash",
"options":[],
"query":"select peername as __text, peer_hash_id as __value from v_peers where router_hash_id in ($router_hash) and recvcapabilities like '% afi=1 safi=128 %';",