447 lines
13 KiB
Django/Jinja
447 lines
13 KiB
Django/Jinja
{% set panel_idx = {'value': 0} %}
|
|
{
|
|
"dashboard": {
|
|
"id": null,
|
|
"title": "{{item.prefix}} - All Nodes Network",
|
|
"tags": [
|
|
"{{item.prefix}}"
|
|
],
|
|
"style": "dark",
|
|
"timezone": "browser",
|
|
"editable": true,
|
|
"hideControls": false,
|
|
"sharedCrosshair": false,
|
|
"rows": [
|
|
{
|
|
"collapse": false,
|
|
"editable": true,
|
|
"height": "250px",
|
|
"panels": [
|
|
{% for host in groups['controller'] %}
|
|
{
|
|
"aliasColors": {},
|
|
"bars": false,
|
|
"datasource": null,
|
|
"editable": true,
|
|
"error": false,
|
|
"fill": 1,
|
|
"grid": {
|
|
"leftLogBase": 1,
|
|
"leftMax": null,
|
|
"leftMin": null,
|
|
"rightLogBase": 1,
|
|
"rightMax": null,
|
|
"rightMin": null,
|
|
"threshold1": null,
|
|
"threshold1Color": "rgba(216, 200, 27, 0.27)",
|
|
"threshold2": null,
|
|
"threshold2Color": "rgba(234, 112, 112, 0.22)"
|
|
},
|
|
{% if panel_idx.update({'value': (panel_idx.value + 1)}) %} {% endif %}
|
|
"id": {{panel_idx.value}},
|
|
"isNew": true,
|
|
"legend": {
|
|
"alignAsTable": true,
|
|
"avg": true,
|
|
"current": true,
|
|
"max": true,
|
|
"min": true,
|
|
"rightSide": true,
|
|
"show": true,
|
|
"total": false,
|
|
"values": true
|
|
},
|
|
"lines": true,
|
|
"linewidth": 2,
|
|
"links": [],
|
|
"nullPointMode": "connected",
|
|
"percentage": false,
|
|
"pointradius": 5,
|
|
"points": false,
|
|
"renderer": "flot",
|
|
"seriesOverrides": [
|
|
{
|
|
"alias": "RX",
|
|
"transform": "negative-Y"
|
|
}
|
|
],
|
|
"span": 12,
|
|
"stack": false,
|
|
"steppedLine": false,
|
|
"targets": [
|
|
{
|
|
"refId": "A",
|
|
"target": "alias({{item.prefix}}.{{host}}_localdomain.$Interface.if_packets.tx, 'TX')"
|
|
},
|
|
{
|
|
"refId": "B",
|
|
"target": "alias({{item.prefix}}.{{host}}_localdomain.$Interface.if_packets.rx, 'RX')"
|
|
}
|
|
],
|
|
"timeFrom": null,
|
|
"timeShift": null,
|
|
"title": "{{host}} - $Interface pps",
|
|
"tooltip": {
|
|
"shared": true,
|
|
"value_type": "cumulative"
|
|
},
|
|
"type": "graph",
|
|
"x-axis": true,
|
|
"y-axis": true,
|
|
"y_formats": [
|
|
"pps",
|
|
"short"
|
|
]
|
|
{% if not loop.last %}
|
|
},
|
|
{% else %}
|
|
}
|
|
{% endif %}
|
|
{% endfor %}
|
|
],
|
|
"title": "Controller Network pps",
|
|
"showTitle": true
|
|
},
|
|
{
|
|
"collapse": false,
|
|
"editable": true,
|
|
"height": "250px",
|
|
"panels": [
|
|
{% for host in groups['compute'] %}
|
|
{
|
|
"aliasColors": {},
|
|
"bars": false,
|
|
"datasource": null,
|
|
"editable": true,
|
|
"error": false,
|
|
"fill": 1,
|
|
"grid": {
|
|
"leftLogBase": 1,
|
|
"leftMax": null,
|
|
"leftMin": null,
|
|
"rightLogBase": 1,
|
|
"rightMax": null,
|
|
"rightMin": null,
|
|
"threshold1": null,
|
|
"threshold1Color": "rgba(216, 200, 27, 0.27)",
|
|
"threshold2": null,
|
|
"threshold2Color": "rgba(234, 112, 112, 0.22)"
|
|
},
|
|
{% if panel_idx.update({'value': (panel_idx.value + 1)}) %} {% endif %}
|
|
"id": {{panel_idx.value}},
|
|
"isNew": true,
|
|
"legend": {
|
|
"alignAsTable": true,
|
|
"avg": true,
|
|
"current": true,
|
|
"max": true,
|
|
"min": true,
|
|
"rightSide": true,
|
|
"show": true,
|
|
"total": false,
|
|
"values": true
|
|
},
|
|
"lines": true,
|
|
"linewidth": 2,
|
|
"links": [],
|
|
"nullPointMode": "connected",
|
|
"percentage": false,
|
|
"pointradius": 5,
|
|
"points": false,
|
|
"renderer": "flot",
|
|
"seriesOverrides": [
|
|
{
|
|
"alias": "RX",
|
|
"transform": "negative-Y"
|
|
}
|
|
],
|
|
"span": 12,
|
|
"stack": false,
|
|
"steppedLine": false,
|
|
"targets": [
|
|
{
|
|
"refId": "A",
|
|
"target": "alias({{item.prefix}}.{{host}}_localdomain.$Interface.if_packets.tx, 'TX')"
|
|
},
|
|
{
|
|
"refId": "B",
|
|
"target": "alias({{item.prefix}}.{{host}}_localdomain.$Interface.if_packets.rx, 'RX')"
|
|
}
|
|
],
|
|
"timeFrom": null,
|
|
"timeShift": null,
|
|
"title": "{{host}} - $Interface pps",
|
|
"tooltip": {
|
|
"shared": true,
|
|
"value_type": "cumulative"
|
|
},
|
|
"type": "graph",
|
|
"x-axis": true,
|
|
"y-axis": true,
|
|
"y_formats": [
|
|
"pps",
|
|
"short"
|
|
]
|
|
{% if not loop.last %}
|
|
},
|
|
{% else %}
|
|
}
|
|
{% endif %}
|
|
{% endfor %}
|
|
],
|
|
"title": "Compute Nodes Network pps",
|
|
"showTitle": true
|
|
},
|
|
|
|
{
|
|
"collapse": false,
|
|
"editable": true,
|
|
"height": "250px",
|
|
"panels": [
|
|
{% for host in groups['controller'] %}
|
|
{
|
|
"aliasColors": {},
|
|
"bars": false,
|
|
"datasource": null,
|
|
"editable": true,
|
|
"error": false,
|
|
"fill": 1,
|
|
"grid": {
|
|
"leftLogBase": 1,
|
|
"leftMax": null,
|
|
"leftMin": null,
|
|
"rightLogBase": 1,
|
|
"rightMax": null,
|
|
"rightMin": null,
|
|
"threshold1": null,
|
|
"threshold1Color": "rgba(216, 200, 27, 0.27)",
|
|
"threshold2": null,
|
|
"threshold2Color": "rgba(234, 112, 112, 0.22)"
|
|
},
|
|
{% if panel_idx.update({'value': (panel_idx.value + 1)}) %} {% endif %}
|
|
"id": {{panel_idx.value}},
|
|
"isNew": true,
|
|
"legend": {
|
|
"alignAsTable": true,
|
|
"avg": true,
|
|
"current": true,
|
|
"max": true,
|
|
"min": true,
|
|
"rightSide": true,
|
|
"show": true,
|
|
"total": false,
|
|
"values": true
|
|
},
|
|
"lines": true,
|
|
"linewidth": 2,
|
|
"links": [],
|
|
"nullPointMode": "connected",
|
|
"percentage": false,
|
|
"pointradius": 5,
|
|
"points": false,
|
|
"renderer": "flot",
|
|
"seriesOverrides": [
|
|
{
|
|
"alias": "RX",
|
|
"transform": "negative-Y"
|
|
}
|
|
],
|
|
"span": 12,
|
|
"stack": false,
|
|
"steppedLine": false,
|
|
"targets": [
|
|
{
|
|
"refId": "A",
|
|
"target": "alias({{item.prefix}}.{{host}}_localdomain.$Interface.if_octets.tx, 'TX')"
|
|
},
|
|
{
|
|
"refId": "B",
|
|
"target": "alias({{item.prefix}}.{{host}}_localdomain.$Interface.if_octets.rx, 'RX')"
|
|
}
|
|
],
|
|
"timeFrom": null,
|
|
"timeShift": null,
|
|
"title": "{{host}} - $Interface Throughput",
|
|
"tooltip": {
|
|
"shared": true,
|
|
"value_type": "cumulative"
|
|
},
|
|
"type": "graph",
|
|
"x-axis": true,
|
|
"y-axis": true,
|
|
"y_formats": [
|
|
"Bps",
|
|
"short"
|
|
]
|
|
{% if not loop.last %}
|
|
},
|
|
{% else %}
|
|
}
|
|
{% endif %}
|
|
{% endfor %}
|
|
],
|
|
"title": "Controller Network Throughput",
|
|
"showTitle": true
|
|
},
|
|
|
|
{
|
|
"collapse": false,
|
|
"editable": true,
|
|
"height": "250px",
|
|
"panels": [
|
|
{% for host in groups['compute'] %}
|
|
{
|
|
"aliasColors": {},
|
|
"bars": false,
|
|
"datasource": null,
|
|
"editable": true,
|
|
"error": false,
|
|
"fill": 1,
|
|
"grid": {
|
|
"leftLogBase": 1,
|
|
"leftMax": null,
|
|
"leftMin": null,
|
|
"rightLogBase": 1,
|
|
"rightMax": null,
|
|
"rightMin": null,
|
|
"threshold1": null,
|
|
"threshold1Color": "rgba(216, 200, 27, 0.27)",
|
|
"threshold2": null,
|
|
"threshold2Color": "rgba(234, 112, 112, 0.22)"
|
|
},
|
|
{% if panel_idx.update({'value': (panel_idx.value + 1)}) %} {% endif %}
|
|
"id": {{panel_idx.value}},
|
|
"isNew": true,
|
|
"legend": {
|
|
"alignAsTable": true,
|
|
"avg": true,
|
|
"current": true,
|
|
"max": true,
|
|
"min": true,
|
|
"rightSide": true,
|
|
"show": true,
|
|
"total": false,
|
|
"values": true
|
|
},
|
|
"lines": true,
|
|
"linewidth": 2,
|
|
"links": [],
|
|
"nullPointMode": "connected",
|
|
"percentage": false,
|
|
"pointradius": 5,
|
|
"points": false,
|
|
"renderer": "flot",
|
|
"seriesOverrides": [
|
|
{
|
|
"alias": "RX",
|
|
"transform": "negative-Y"
|
|
}
|
|
],
|
|
"span": 12,
|
|
"stack": false,
|
|
"steppedLine": false,
|
|
"targets": [
|
|
{
|
|
"refId": "A",
|
|
"target": "alias({{item.prefix}}.{{host}}_localdomain.$Interface.if_octets.tx, 'TX')"
|
|
},
|
|
{
|
|
"refId": "B",
|
|
"target": "alias({{item.prefix}}.{{host}}_localdomain.$Interface.if_octets.rx, 'RX')"
|
|
}
|
|
],
|
|
"timeFrom": null,
|
|
"timeShift": null,
|
|
"title": "{{host}} - $Interface Throughput",
|
|
"tooltip": {
|
|
"shared": true,
|
|
"value_type": "cumulative"
|
|
},
|
|
"type": "graph",
|
|
"x-axis": true,
|
|
"y-axis": true,
|
|
"y_formats": [
|
|
"Bps",
|
|
"short"
|
|
]
|
|
{% if not loop.last %}
|
|
},
|
|
{% else %}
|
|
}
|
|
{% endif %}
|
|
{% endfor %}
|
|
],
|
|
"title": "Compute Nodes Network Throughput",
|
|
"showTitle": true
|
|
}
|
|
|
|
],
|
|
"time": {
|
|
"from": "now-1h",
|
|
"to": "now"
|
|
},
|
|
"timepicker": {
|
|
"refresh_intervals": [
|
|
"5s",
|
|
"10s",
|
|
"30s",
|
|
"1m",
|
|
"5m",
|
|
"15m",
|
|
"30m",
|
|
"1h",
|
|
"2h",
|
|
"1d"
|
|
],
|
|
"time_options": [
|
|
"5m",
|
|
"15m",
|
|
"1h",
|
|
"6h",
|
|
"12h",
|
|
"24h",
|
|
"2d",
|
|
"7d",
|
|
"30d"
|
|
]
|
|
},
|
|
"templating": {
|
|
"list": [
|
|
{
|
|
"type": "query",
|
|
"datasource": null,
|
|
"refresh": true,
|
|
"name": "Interface",
|
|
"options": [],
|
|
"includeAll": false,
|
|
"allFormat": "glob",
|
|
"multi": false,
|
|
"multiFormat": "glob",
|
|
"query": "{{item.prefix}}.*.interface-*",
|
|
"current": {
|
|
"text": "interface-br-ex",
|
|
"value": "interface-br-ex",
|
|
"tags": []
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"annotations": {
|
|
"list": []
|
|
},
|
|
"schemaVersion": 8,
|
|
"version": 5,
|
|
"links": [
|
|
{
|
|
"icon": "external link",
|
|
"tags": [
|
|
"{{item.prefix}}"
|
|
],
|
|
"type": "dashboards",
|
|
"asDropdown": true,
|
|
"title": "{{item.prefix}} Dashboards"
|
|
}
|
|
],
|
|
"overwrite": true
|
|
}
|
|
} |