"rawSql":"SELECT\n $__timeGroup(interval_time, $__interval) as time,\n sum(updates) as updates,sum(withdraws) as withdraws\nFROM stats_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":13,
"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.routername as metric\n FROM stats_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 routername,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 Router",
"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.routername as metric\n FROM stats_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 routername,time\n order by time",
"refId":"A",
"select":[
[
{
"params":[
"value"
],
"type":"column"
}
]
],
"timeColumn":"time",
"where":[
{
"name":"$__timeFilter",
"params":[],
"type":"macro"
}
]
}
],
"title":"Withdraws by Router",
"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":13
},
"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_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":13
},
"id":14,
"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_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 as_name as \"AS Name\",d.* from (\n SELECT\n origin_as as asn,\n sum(updates) as \"Updates\"\n FROM stats_chg_byasn l\n WHERE $__timeFilter(interval_time)\n AND peer_hash_id in ($peer_hash)\n GROUP BY asn\n order by \"Updates\" desc\n LIMIT 20\n) d\nLEFT JOIN info_asn i ON (i.asn = d.asn)\n",
"rawSql":"SELECT as_name,d.* from (\n SELECT\n origin_as as asn,\n sum(withdraws) as \"Withdraws\"\n FROM stats_chg_byasn l\n WHERE $__timeFilter(interval_time)\n AND peer_hash_id in ($peer_hash)\n GROUP BY asn\n order by \"Withdraws\" desc\n LIMIT 20\n) d\nLEFT JOIN info_asn i ON (i.asn = d.asn)\n",
"rawSql":"SELECT as_name as \"AS Name\", irr_descr as \"Desc\",r.recv_origin_as as origin_as,d.* FROM (\nSELECT\n prefix,\n sum(updates) as \"Updates\"\n FROM stats_chg_byprefix l\n WHERE $__timeFilter(interval_time)\n AND peer_hash_id in ($peer_hash)\n GROUP BY prefix\n order by \"Updates\" desc\nLIMIT 60\n) d\nJOIN global_ip_rib r ON (r.prefix = d.prefix)\nLEFT JOIN info_asn i ON (i.asn = r.recv_origin_as)",
"rawSql":"SELECT as_name as \"AS Name\", irr_descr as \"Desc\",r.recv_origin_as as origin_as,d.* FROM (\nSELECT\n prefix,\n sum(withdraws) as \"Withdraws\"\n FROM stats_chg_byprefix l\n WHERE $__timeFilter(interval_time)\n AND peer_hash_id in ($peer_hash)\n GROUP BY prefix\n order by \"Withdraws\" desc\nLIMIT 60\n) d\nJOIN global_ip_rib r ON (r.prefix = d.prefix)\n--LEFT JOIN info_route ir ON (ir.prefix = d.prefix)\nLEFT JOIN info_asn i ON (i.asn = r.recv_origin_as)",