"rawSql":"SELECT\n $__timeGroup(interval_time, $__interval) as time,\n sum(updates) as updates, sum(withdraws) as withdraws\nFROM stats_chg_byasn s\nWHERE $__timeFilter(interval_time)\n AND s.origin_as = [[origin_as]]\n AND s.peer_hash_id in ($peer_hash)\n\ngroup by time\nORDER BY time ASC\n",
"refId":"A",
"select":[
[
{
"params":[
"value"
],
"type":"column"
}
]
],
"timeColumn":"time",
"where":[
{
"name":"$__timeFilter",
"params":[],
"type":"macro"
}
]
}
],
"title":"Prefix Advertisements & Withdrawals",
"type":"timeseries"
},
{
"datasource":{
"type":"postgres",
"uid":"obmp_postgres"
},
"fieldConfig":{
"defaults":{
"color":{
"mode":"palette-classic"
},
"custom":{
"axisCenteredZero":false,
"axisColorMode":"text",
"axisLabel":"",
"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"
}
},
"decimals":0,
"links":[],
"mappings":[],
"thresholds":{
"mode":"absolute",
"steps":[
{
"color":"green",
"value":null
},
{
"color":"red",
"value":80
}
]
},
"unit":"locale"
},
"overrides":[]
},
"gridPos":{
"h":7,
"w":13,
"x":11,
"y":0
},
"id":2,
"links":[],
"options":{
"legend":{
"calcs":[
"mean",
"max",
"sum"
],
"displayMode":"table",
"placement":"right",
"showLegend":true
},
"tooltip":{
"mode":"single",
"sort":"none"
}
},
"pluginVersion":"8.0.5",
"targets":[
{
"alias":"",
"format":"time_series",
"group":[],
"metricColumn":"none",
"rawQuery":true,
"rawSql":"SELECT\n $__timeGroup(interval_time, $__interval) as time,\n sum(updates) as updates, sum(withdraws) as withdraws,\n left(PeerName,32) as metric\nFROM stats_chg_byasn l\n JOIN v_peers p ON (l.peer_hash_id = p.peer_hash_id)\nWHERE $__timeFilter(interval_time)\n AND l.origin_as = [[origin_as]]\n AND l.peer_hash_id in ($peer_hash)\n\nGROUP BY peername,time\nORDER BY time ASC\n\n",
"refId":"A",
"select":[
[
{
"params":[
"value"
],
"type":"column"
}
]
],
"timeColumn":"time",
"where":[
{
"name":"$__timeFilter",
"params":[],
"type":"macro"
}
]
}
],
"title":"Changes by Peer",
"type":"timeseries"
},
{
"datasource":{
"type":"postgres",
"uid":"obmp_postgres"
},
"fieldConfig":{
"defaults":{
"color":{
"mode":"thresholds"
},
"custom":{
"align":"auto",
"displayMode":"auto",
"filterable":true,
"inspect":false
},
"mappings":[],
"thresholds":{
"mode":"absolute",
"steps":[
{
"color":"green",
"value":null
},
{
"color":"red",
"value":80
}
]
}
},
"overrides":[
{
"matcher":{
"id":"byName",
"options":"lastmodified"
},
"properties":[
{
"id":"unit",
"value":"time: YYYY-MM-DD HH:mm:ss.SSS"
},
{
"id":"custom.width",
"value":201
}
]
},
{
"matcher":{
"id":"byName",
"options":"origin_as"
},
"properties":[
{
"id":"custom.width",
"value":118
}
]
},
{
"matcher":{
"id":"byName",
"options":"localpref"
},
"properties":[
{
"id":"custom.width",
"value":76
}
]
},
{
"matcher":{
"id":"byName",
"options":"communities"
},
"properties":[
{
"id":"custom.width",
"value":525
}
]
},
{
"matcher":{
"id":"byName",
"options":"as_path"
},
"properties":[
{
"id":"custom.width",
"value":252
}
]
},
{
"matcher":{
"id":"byName",
"options":"med"
},
"properties":[
{
"id":"custom.width",
"value":87
}
]
},
{
"matcher":{
"id":"byName",
"options":"nh"
},
"properties":[
{
"id":"custom.width",
"value":136
}
]
},
{
"matcher":{
"id":"byName",
"options":"prefix"
},
"properties":[
{
"id":"custom.width",
"value":206
}
]
},
{
"matcher":{
"id":"byName",
"options":"event"
},
"properties":[
{
"id":"custom.width",
"value":113
}
]
},
{
"matcher":{
"id":"byName",
"options":"routername"
},
"properties":[
{
"id":"custom.width",
"value":142
}
]
},
{
"matcher":{
"id":"byName",
"options":"peername"
},
"properties":[
{
"id":"custom.width",
"value":283
}
]
}
]
},
"gridPos":{
"h":20,
"w":24,
"x":0,
"y":7
},
"id":3,
"links":[],
"options":{
"footer":{
"fields":"",
"reducer":[
"sum"
],
"show":false
},
"showHeader":true,
"sortBy":[]
},
"pluginVersion":"9.1.7",
"targets":[
{
"alias":"",
"datasource":{
"type":"postgres",
"uid":"obmp_postgres"
},
"format":"table",
"group":[],
"hide":false,
"metricColumn":"none",
"rawQuery":true,
"rawSql":" select lastmodified,event,routername,peername,prefix,nh,\n origin_as,localpref,med,as_path,communities\n from v_ip_routes_history \n where $__timeFilter(lastmodified)\n AND origin_as = [[origin_as]]\n AND peer_hash_id in ($peer_hash)\n\n order by lastmodified desc,id desc\n limit $limit;",