479 lines
12 KiB
JSON
479 lines
12 KiB
JSON
|
|
{
|
||
|
|
"annotations": {
|
||
|
|
"list": [
|
||
|
|
{
|
||
|
|
"builtIn": 1,
|
||
|
|
"datasource": {
|
||
|
|
"type": "datasource",
|
||
|
|
"uid": "grafana"
|
||
|
|
},
|
||
|
|
"enable": true,
|
||
|
|
"hide": true,
|
||
|
|
"iconColor": "rgba(0, 211, 255, 1)",
|
||
|
|
"name": "Annotations & Alerts",
|
||
|
|
"target": {
|
||
|
|
"limit": 100,
|
||
|
|
"matchAny": false,
|
||
|
|
"tags": [],
|
||
|
|
"type": "dashboard"
|
||
|
|
},
|
||
|
|
"type": "dashboard"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"editable": true,
|
||
|
|
"fiscalYearStartMonth": 0,
|
||
|
|
"graphTooltip": 0,
|
||
|
|
"id": 15,
|
||
|
|
"iteration": 1654877712696,
|
||
|
|
"links": [],
|
||
|
|
"liveNow": false,
|
||
|
|
"panels": [
|
||
|
|
{
|
||
|
|
"datasource": {
|
||
|
|
"type": "postgres",
|
||
|
|
"uid": "obmp_postgres"
|
||
|
|
},
|
||
|
|
"fieldConfig": {
|
||
|
|
"defaults": {
|
||
|
|
"color": {
|
||
|
|
"mode": "palette-classic"
|
||
|
|
},
|
||
|
|
"custom": {
|
||
|
|
"hideFrom": {
|
||
|
|
"legend": false,
|
||
|
|
"tooltip": false,
|
||
|
|
"viz": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"decimals": 0,
|
||
|
|
"mappings": [],
|
||
|
|
"unit": "none"
|
||
|
|
},
|
||
|
|
"overrides": []
|
||
|
|
},
|
||
|
|
"gridPos": {
|
||
|
|
"h": 7,
|
||
|
|
"w": 7,
|
||
|
|
"x": 0,
|
||
|
|
"y": 0
|
||
|
|
},
|
||
|
|
"id": 4,
|
||
|
|
"links": [],
|
||
|
|
"maxDataPoints": 3,
|
||
|
|
"options": {
|
||
|
|
"legend": {
|
||
|
|
"calcs": [],
|
||
|
|
"displayMode": "table",
|
||
|
|
"placement": "right",
|
||
|
|
"values": [
|
||
|
|
"value",
|
||
|
|
"percent"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"pieType": "pie",
|
||
|
|
"reduceOptions": {
|
||
|
|
"calcs": [
|
||
|
|
"sum"
|
||
|
|
],
|
||
|
|
"fields": "",
|
||
|
|
"values": false
|
||
|
|
},
|
||
|
|
"tooltip": {
|
||
|
|
"mode": "single",
|
||
|
|
"sort": "none"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"targets": [
|
||
|
|
{
|
||
|
|
"format": "time_series",
|
||
|
|
"group": [],
|
||
|
|
"metricColumn": "none",
|
||
|
|
"rawQuery": true,
|
||
|
|
"rawSql": "select floor(extract(epoch from max(timestamp))) as time,\n count(*) as value, CASE WHEN iswithdrawn THEN 'WITHDRAWN' ELSE 'ACTIVE' END as metric\nfrom ls_links\nwhere local_node_hash_id = '$local_node_hash_id'\n AND peer_hash_id = '$peer_hash'\ngroup by iswithdrawn\norder by time\n",
|
||
|
|
"refId": "A",
|
||
|
|
"select": [
|
||
|
|
[
|
||
|
|
{
|
||
|
|
"params": [
|
||
|
|
"value"
|
||
|
|
],
|
||
|
|
"type": "column"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
],
|
||
|
|
"timeColumn": "time",
|
||
|
|
"where": [
|
||
|
|
{
|
||
|
|
"name": "$__timeFilter",
|
||
|
|
"params": [],
|
||
|
|
"type": "macro"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Link States",
|
||
|
|
"type": "piechart"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"datasource": {
|
||
|
|
"type": "postgres",
|
||
|
|
"uid": "obmp_postgres"
|
||
|
|
},
|
||
|
|
"fieldConfig": {
|
||
|
|
"defaults": {
|
||
|
|
"color": {
|
||
|
|
"mode": "palette-classic"
|
||
|
|
},
|
||
|
|
"custom": {
|
||
|
|
"hideFrom": {
|
||
|
|
"legend": false,
|
||
|
|
"tooltip": false,
|
||
|
|
"viz": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"decimals": 0,
|
||
|
|
"mappings": [],
|
||
|
|
"unit": "short"
|
||
|
|
},
|
||
|
|
"overrides": []
|
||
|
|
},
|
||
|
|
"gridPos": {
|
||
|
|
"h": 7,
|
||
|
|
"w": 6,
|
||
|
|
"x": 7,
|
||
|
|
"y": 0
|
||
|
|
},
|
||
|
|
"id": 6,
|
||
|
|
"links": [],
|
||
|
|
"maxDataPoints": 3,
|
||
|
|
"options": {
|
||
|
|
"legend": {
|
||
|
|
"calcs": [],
|
||
|
|
"displayMode": "table",
|
||
|
|
"placement": "right",
|
||
|
|
"values": [
|
||
|
|
"value"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"pieType": "pie",
|
||
|
|
"reduceOptions": {
|
||
|
|
"calcs": [
|
||
|
|
"lastNotNull"
|
||
|
|
],
|
||
|
|
"fields": "",
|
||
|
|
"values": false
|
||
|
|
},
|
||
|
|
"tooltip": {
|
||
|
|
"mode": "single",
|
||
|
|
"sort": "none"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"targets": [
|
||
|
|
{
|
||
|
|
"format": "time_series",
|
||
|
|
"group": [],
|
||
|
|
"metricColumn": "none",
|
||
|
|
"rawQuery": true,
|
||
|
|
"rawSql": "select floor(extract(epoch from max(timestamp))) as time,\n count(*) as value, CASE WHEN mt_id = 2 THEN 'IPv6' ELSE 'IPv4' END as metric\nfrom ls_links\nwhere local_node_hash_id = '$local_node_hash_id'\n AND peer_hash_id = '$peer_hash'\ngroup by mt_id\norder by time\n",
|
||
|
|
"refId": "A",
|
||
|
|
"select": [
|
||
|
|
[
|
||
|
|
{
|
||
|
|
"params": [
|
||
|
|
"value"
|
||
|
|
],
|
||
|
|
"type": "column"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
],
|
||
|
|
"timeColumn": "time",
|
||
|
|
"where": [
|
||
|
|
{
|
||
|
|
"name": "$__timeFilter",
|
||
|
|
"params": [],
|
||
|
|
"type": "macro"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Links by Type",
|
||
|
|
"type": "piechart"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"datasource": {
|
||
|
|
"type": "postgres",
|
||
|
|
"uid": "obmp_postgres"
|
||
|
|
},
|
||
|
|
"fieldConfig": {
|
||
|
|
"defaults": {
|
||
|
|
"color": {
|
||
|
|
"mode": "thresholds"
|
||
|
|
},
|
||
|
|
"custom": {
|
||
|
|
"align": "auto",
|
||
|
|
"displayMode": "auto",
|
||
|
|
"inspect": false
|
||
|
|
},
|
||
|
|
"decimals": 0,
|
||
|
|
"displayName": "",
|
||
|
|
"mappings": [],
|
||
|
|
"thresholds": {
|
||
|
|
"mode": "absolute",
|
||
|
|
"steps": [
|
||
|
|
{
|
||
|
|
"color": "green",
|
||
|
|
"value": null
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"color": "red",
|
||
|
|
"value": 80
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"unit": "none"
|
||
|
|
},
|
||
|
|
"overrides": [
|
||
|
|
{
|
||
|
|
"matcher": {
|
||
|
|
"id": "byName",
|
||
|
|
"options": "timestamp"
|
||
|
|
},
|
||
|
|
"properties": [
|
||
|
|
{
|
||
|
|
"id": "displayName",
|
||
|
|
"value": "Time"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "unit",
|
||
|
|
"value": "short"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "decimals",
|
||
|
|
"value": 2
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "unit",
|
||
|
|
"value": "time: YYYY-MM-DD HH:mm:ss.SSS"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "custom.align"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"matcher": {
|
||
|
|
"id": "byName",
|
||
|
|
"options": "seq"
|
||
|
|
},
|
||
|
|
"properties": [
|
||
|
|
{
|
||
|
|
"id": "unit",
|
||
|
|
"value": "locale"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"matcher": {
|
||
|
|
"id": "byName",
|
||
|
|
"options": "state"
|
||
|
|
},
|
||
|
|
"properties": [
|
||
|
|
{
|
||
|
|
"id": "custom.displayMode",
|
||
|
|
"value": "color-background-solid"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "mappings",
|
||
|
|
"value": [
|
||
|
|
{
|
||
|
|
"options": {
|
||
|
|
"ACTIVE": {
|
||
|
|
"color": "semi-dark-green",
|
||
|
|
"index": 0
|
||
|
|
},
|
||
|
|
"WITHDRAWN": {
|
||
|
|
"color": "semi-dark-red",
|
||
|
|
"index": 1
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"type": "value"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"gridPos": {
|
||
|
|
"h": 14,
|
||
|
|
"w": 24,
|
||
|
|
"x": 0,
|
||
|
|
"y": 7
|
||
|
|
},
|
||
|
|
"id": 2,
|
||
|
|
"options": {
|
||
|
|
"footer": {
|
||
|
|
"fields": "",
|
||
|
|
"reducer": [
|
||
|
|
"sum"
|
||
|
|
],
|
||
|
|
"show": false
|
||
|
|
},
|
||
|
|
"showHeader": true
|
||
|
|
},
|
||
|
|
"pluginVersion": "8.5.4",
|
||
|
|
"targets": [
|
||
|
|
{
|
||
|
|
"format": "table",
|
||
|
|
"group": [],
|
||
|
|
"metricColumn": "none",
|
||
|
|
"rawQuery": true,
|
||
|
|
"rawSql": "SELECT state,local_router_name,local_igp_routerid,remote_router_name,remote_igp_routerid,mt_id,igp_metric,protocol, timestamp, seq\n FROM v_ls_links\n WHERE local_node_hash_id = '$local_node_hash_id'\n AND peer_hash_id = '$peer_hash'",
|
||
|
|
"refId": "A",
|
||
|
|
"select": [
|
||
|
|
[
|
||
|
|
{
|
||
|
|
"params": [
|
||
|
|
"value"
|
||
|
|
],
|
||
|
|
"type": "column"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
],
|
||
|
|
"timeColumn": "time",
|
||
|
|
"where": [
|
||
|
|
{
|
||
|
|
"name": "$__timeFilter",
|
||
|
|
"params": [],
|
||
|
|
"type": "macro"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "$local_node_name Links",
|
||
|
|
"transformations": [
|
||
|
|
{
|
||
|
|
"id": "merge",
|
||
|
|
"options": {
|
||
|
|
"reducers": []
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"transparent": true,
|
||
|
|
"type": "table"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"schemaVersion": 36,
|
||
|
|
"style": "dark",
|
||
|
|
"tags": [
|
||
|
|
"obmp-linkstate"
|
||
|
|
],
|
||
|
|
"templating": {
|
||
|
|
"list": [
|
||
|
|
{
|
||
|
|
"current": {
|
||
|
|
"selected": false,
|
||
|
|
"text": "yyz01-wxbb-crt01-lo0.webex.com",
|
||
|
|
"value": "367c22e4-57d9-2328-654b-96ea750e0267"
|
||
|
|
},
|
||
|
|
"datasource": {
|
||
|
|
"type": "postgres",
|
||
|
|
"uid": "obmp_postgres"
|
||
|
|
},
|
||
|
|
"definition": "SELECT __text,__value FROM (\n select peername as __text, peer_hash_id as __value, count(*) as count\n from v_ls_nodes\n group by peername,peer_hash_id) d\nwhere count > 0\n ",
|
||
|
|
"hide": 0,
|
||
|
|
"includeAll": false,
|
||
|
|
"label": "BGP Peer",
|
||
|
|
"multi": false,
|
||
|
|
"name": "peer_hash",
|
||
|
|
"options": [],
|
||
|
|
"query": "SELECT __text,__value FROM (\n select peername as __text, peer_hash_id as __value, count(*) as count\n from v_ls_nodes\n group by peername,peer_hash_id) d\nwhere count > 0\n ",
|
||
|
|
"refresh": 1,
|
||
|
|
"regex": "",
|
||
|
|
"skipUrlSync": false,
|
||
|
|
"sort": 1,
|
||
|
|
"tagValuesQuery": "",
|
||
|
|
"tagsQuery": "",
|
||
|
|
"type": "query",
|
||
|
|
"useTags": false
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"current": {
|
||
|
|
"selected": false,
|
||
|
|
"text": "AMS10-WXBB-CRT02",
|
||
|
|
"value": "1ed1da6b-6f57-57aa-92f5-edda59049e9a"
|
||
|
|
},
|
||
|
|
"datasource": {
|
||
|
|
"type": "postgres",
|
||
|
|
"uid": "obmp_postgres"
|
||
|
|
},
|
||
|
|
"definition": "select name as __text, hash_id as __value from ls_nodes where peer_hash_id = '$peer_hash' and not igp_router_id ~ '\\..[1-9A-F]00$'",
|
||
|
|
"hide": 0,
|
||
|
|
"includeAll": false,
|
||
|
|
"label": "ISIS Node",
|
||
|
|
"multi": false,
|
||
|
|
"name": "local_node_hash_id",
|
||
|
|
"options": [],
|
||
|
|
"query": "select name as __text, hash_id as __value from ls_nodes where peer_hash_id = '$peer_hash' and not igp_router_id ~ '\\..[1-9A-F]00$'",
|
||
|
|
"refresh": 1,
|
||
|
|
"regex": "",
|
||
|
|
"skipUrlSync": false,
|
||
|
|
"sort": 5,
|
||
|
|
"tagValuesQuery": "",
|
||
|
|
"tagsQuery": "",
|
||
|
|
"type": "query",
|
||
|
|
"useTags": false
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"current": {
|
||
|
|
"selected": false,
|
||
|
|
"text": "AMS10-WXBB-CRT02",
|
||
|
|
"value": "AMS10-WXBB-CRT02"
|
||
|
|
},
|
||
|
|
"datasource": {
|
||
|
|
"type": "postgres",
|
||
|
|
"uid": "obmp_postgres"
|
||
|
|
},
|
||
|
|
"definition": "select name from ls_nodes where hash_id = '$local_node_hash_id' and peer_hash_id = '$peer_hash'",
|
||
|
|
"hide": 2,
|
||
|
|
"includeAll": false,
|
||
|
|
"multi": false,
|
||
|
|
"name": "local_node_name",
|
||
|
|
"options": [],
|
||
|
|
"query": "select name from ls_nodes where hash_id = '$local_node_hash_id' and peer_hash_id = '$peer_hash'",
|
||
|
|
"refresh": 1,
|
||
|
|
"regex": "",
|
||
|
|
"skipUrlSync": false,
|
||
|
|
"sort": 0,
|
||
|
|
"tagValuesQuery": "",
|
||
|
|
"tagsQuery": "",
|
||
|
|
"type": "query",
|
||
|
|
"useTags": false
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"time": {
|
||
|
|
"from": "now-6h",
|
||
|
|
"to": "now"
|
||
|
|
},
|
||
|
|
"timepicker": {
|
||
|
|
"refresh_intervals": [
|
||
|
|
"5s",
|
||
|
|
"10s",
|
||
|
|
"30s",
|
||
|
|
"1m",
|
||
|
|
"5m",
|
||
|
|
"15m",
|
||
|
|
"30m",
|
||
|
|
"1h",
|
||
|
|
"2h",
|
||
|
|
"1d"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"timezone": "",
|
||
|
|
"title": "LS Links",
|
||
|
|
"uid": "MPqNG_sWz",
|
||
|
|
"version": 1,
|
||
|
|
"weekStart": ""
|
||
|
|
}
|