Commit fb5c8cc3 authored by MaksimSmile13's avatar MaksimSmile13

ddash

parent f70cb608
{
"id": "4622e57f-a3f2-4d1e-bd97-90c4566733fa",
"title": "{% set comma = joiner(" ") -%}{% for o in container_path %}{{ comma() }}{{ o.name }}{% endfor %}",
"tags": ["{{pool}}"],
"style": "dark",
"timezone": "browser",
"refresh": "15m",
"editable": true,
"hideControls": false,
"sharedCrosshair": false,
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {
"refresh_intervals": ["5m","10m","15m"],
"time_options": ["1h","3h","6h","12h","24h","2d","7d"]
},
"templating": {
"list": [
{% include "template_resolved_bi_id.j2" with context -%}
]
},
"annotations": {},
"schemaVersion": 12,
"version": 33,
"links": [
{
"icon": "doc",
"includeVars": true,
"keepTime": true,
"tags": [],
"targetBlank": true,
"type": "link",
"title": "png",
"tooltip": "png",
"url": "/ui/grafana/render/dashboard/script/noc.js?width=1800&dashboard=container&id={{ container_id }}"
},
{
"icon": "external link",
"includeVars": true,
"keepTime": true,
"tags": [
""
],
"targetBlank": true,
"type": "dashboards"
},
{
"asDropdown": true,
"icon": "external link",
"includeVars": true,
"tags": [
"SYSTEM"
],
"targetBlank": true,
"type": "dashboards"
}
],
"gnetId": null,
"rows": [
{
"collapse": false,
"height": "25px",
"panels": [
{% include "panel_container.j2" with context -%}
]
}
{% if bi_ids %}
,{
"collapse": false,
"height": "250px",
"repeat": "bi_id",
"showTitle": true,
"title": "$bi_id",
"titleSize": "h6",
"panels": [
{% include "graph_errors.j2" with context -%},
{% include "graph_rtt.j2" with context -%},
{% include "graph_memory_usage.j2" with context -%},
{% include "graph_cpu_usage.j2" with context -%}
]
}
{% else %}
,{
"collapse": false,
"height": "25px",
"panels": [
{% include "panel_empty_container.j2" with context -%},
]
}
{% endif %}
]
}
{% set comma = joiner(",") -%}
{
"id": "239c4cd2-7cf6-41a5-91f8-9f6bd9218361",
"title": "IP SLA Monitor",
"tags": [],
"style": "dark",
"timezone": "browser",
"editable": true,
"sharedCrosshair": false,
"hideControls": false,
"time": {
"from": "now-12h",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5m",
"10m",
"15m"
],
"time_options": [
"1h",
"3h",
"6h",
"12h",
"24h",
"2d",
"7d"
]
},
"templating": {
"list": [
{% include "template_device.j2" with context -%},
{% include "template_device_id.j2" with context -%},
{% include "template_ip_info.j2" with context -%},
{% include "template_segment.j2" with context -%},
{% include "template_bi_id.j2" with context -%},
{% include "template_probe.j2" with context -%}
]
},
"annotations": {
"list": [
{
"datasource": "NocDS",
"enable": false,
"iconColor": "rgba(255, 96, 96, 1)",
"name": "Alarm",
"query": "{{device_id}}"
}
]
},
"schemaVersion": 13,
"version": 11,
"links": [],
"gnetId": null,
"rows": [
{
"title": "All",
"showTitle": true,
"titleSize": "h6",
"height": "250px",
"repeat": null,
"repeatRowId": null,
"repeatIteration": null,
"collapse": false,
"panels": [
{
"aliasColors": {},
"bars": false,
"datasource": null,
"editable": true,
"error": false,
"fill": 1,
"grid": {},
"id": 9,
"legend": {
"alignAsTable": true,
"avg": true,
"current": true,
"max": true,
"min": true,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 2,
"links": [],
"nullPointMode": "connected",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"span": 12,
"stack": false,
"steppedLine": true,
"targets": [
{
"refId": "A",
"resultFormat": "time_series",
"intervalFactor": 1,
"query": "SELECT \n t, \n groupArray((concat('Probe rtt ',path[1]), d)) AS groupArr\nFROM \n ( SELECT \n $timeSeries t, \n path, \n avg(icmp_rtt) d \n from noc.sla \n WHERE \n $timeFilter\n AND managed_object= $bi_id \n GROUP BY t, path\n ORDER BY t\n ) \nGROUP BY t \nORDER BY t",
"database": "noc",
"tableLoading": false,
"table": "sla",
"dateLoading": false,
"datetimeLoading": false,
"dateColDataType": "date",
"dateTimeColDataType": "ts"
},
{
"refId": "B",
"resultFormat": "time_series",
"intervalFactor": 1,
"query": "SELECT \n t, \n groupArray((concat('Probe jitter ',path[1]), d)) AS groupArr\nFROM \n ( SELECT \n $timeSeries t, \n path, \n avg(jitter) d \n from noc.sla \n WHERE \n $timeFilter\n AND managed_object= $bi_id \n GROUP BY t, path\n ORDER BY t\n ) \nGROUP BY t \nORDER BY t",
"database": "noc",
"tableLoading": false,
"table": "sla",
"dateLoading": false,
"datetimeLoading": false,
"dateColDataType": "date",
"dateTimeColDataType": "ts"
}
],
"thresholds": [],
"timeFrom": null,
"timeShift": null,
"title": "$device",
"tooltip": {
"msResolution": false,
"shared": true,
"sort": 0,
"value_type": "cumulative"
},
"type": "graph",
"xaxis": {
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "ms",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
]
}
]
},
{
"title": "Probe $probe",
"panels": [
{
"aliasColors": {},
"bars": false,
"datasource": null,
"editable": true,
"error": false,
"fill": 1,
"id": 10,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "connected",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"span": 9,
"stack": false,
"steppedLine": false,
"targets": [
{
"database": "noc",
"dateColDataType": "date",
"dateLoading": false,
"dateTimeColDataType": "ts",
"datetimeLoading": false,
"intervalFactor": 1,
"query": "SELECT \n $timeSeries as t, \n avg(icmp_rtt), \n avg(jitter) \nFROM $table \nWHERE \n managed_object=$bi_id \n and $timeFilter \n and path[1]=toString($probe)\nGROUP BY t \nORDER BY t",
"refId": "A",
"resultFormat": "time_series",
"table": "sla",
"tableLoading": false
}
],
"thresholds": [],
"timeFrom": null,
"timeShift": null,
"title": "$device $probe",
"tooltip": {
"msResolution": false,
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"scopedVars": {
"probe": {
"selected": false,
"text": "530",
"value": "530"
}
}
},
{
"content": "Карточка объекта: [$device](/api/card/view/managedobject/$device_id/).\n\nКарта: [$device](/#inv.map/$segment)\n\nДоступ на объект: [Telnet](telnet://$ip), [ssh](ssh://$ip)\n\nДоступ на цель: [Telnet](telnet://$probe), [ssh](ssh://$probe)",
"editable": true,
"error": false,
"id": 11,
"links": [],
"mode": "markdown",
"span": 3,
"title": "$device to $probe",
"type": "text",
"scopedVars": {
"probe": {
"selected": false,
"text": "530",
"value": "530"
}
}
}
],
"showTitle": true,
"titleSize": "h6",
"height": 250,
"repeat": "probe",
"repeatRowId": null,
"repeatIteration": null,
"collapse": false
}
]
}
\ No newline at end of file
{
"id": "e3be24d6-8d7e-4b91-9d0a-3a7254bc0d27",
"title": "Link {{device_a}} - {{device_b}}",
"tags": ["{{pool}}"],
"style": "dark",
"timezone": "browser",
"refresh": "15m",
"editable": true,
"hideControls": false,
"sharedCrosshair": false,
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5m",
"10m",
"15m"
],
"time_options": [
"1h",
"3h",
"6h",
"12h",
"24h",
"2d",
"7d"
]
},
"templating": {
"list": [
{
"current": {
"text": "{{bi_id_a}}",
"value": "{{bi_id_a}}"
},
"datasource": null,
"hide": 2,
"includeAll": false,
"multi": false,
"name": "bi_id_a",
"options": {
"text": "{{bi_id_a}}",
"value": "{{bi_id_a}}"
},
"query": "{{bi_id_a}}",
"refresh": 0,
"type": "custom"
},
{
"current": {
"text": "{{bi_id_b}}",
"value": "{{bi_id_b}}"
},
"datasource": null,
"hide": 2,
"includeAll": false,
"multi": false,
"name": "bi_id_b",
"options": {
"text": "{{bi_id_b}}",
"value": "{{bi_id_b}}"
},
"query": "{{bi_id_b}}",
"refresh": 0,
"type": "custom"
},
{
"current": {
"text": "{{device_a}}",
"value": "{{device_a}}"
},
"datasource": null,
"hide": 2,
"includeAll": false,
"multi": false,
"name": "device_a",
"options": {
"text": "{{device_a}}",
"value": "{{device_a}}"
},
"query": "{{device_a}}",
"refresh": 0,
"type": "custom"
},
{
"current": {
"text": "{{device_b}}",
"value": "{{device_b}}"
},
"datasource": null,
"hide": 2,
"includeAll": false,
"multi": false,
"name": "device_b",
"options": {
"text": "{{device_b}}",
"value": "{{device_b}}"
},
"query": "{{device_b}}",
"refresh": 0,
"type": "custom"
},
{
"current": {
"text": "{{interface_a.descr}}",
"value": "{{interface_a.name}}"
},
"datasource": null,
"hide": 2,
"includeAll": false,
"label": "A",
"multi": false,
"name": "interface_a",
"options": [
{
"text": "{{interface_a.descr}}",
"value": "{{interface_a.name}}"
}
],
"query": "{{interface_a.name}}",
"refresh": 0,
"type": "custom"
},
{
"current": {
"text": "{{interface_b.descr}}",
"value": "{{interface_b.name}}"
},
"datasource": null,
"hide": 2,
"includeAll": false,
"label": "B",
"multi": false,
"name": "interface_b",
"options": [
{
"text": "{{interface_b.descr}}",
"value": "{{interface_b.name}}"
}
],
"query": "{{interface_b.name}}",
"refresh": 0,
"type": "custom"
}
]
},
"annotations": {
"list": [
{
"datasource": "NocDS",
"enable": false,
"iconColor": "rgba(255, 96, 96, 1)",
"name": "Alarms A",
"query": "{{device_a_id}}"
},
{
"datasource": "NocDS",
"enable": false,
"iconColor": "rgba(255, 96, 96, 1)",
"name": "Alarms B",
"query": "{{device_b_id}}"
}
]
},
"schemaVersion": 12,
"version": 33,
"links": [
{
"icon": "doc",
"includeVars": true,
"keepTime": true,
"tags": [],
"targetBlank": true,
"type": "link",
"title": "png",
"tooltip": "png",
"url": "/ui/grafana/render/dashboard/script/noc.js?width=1800&dashboard=link&id={{link_id}}"
},
{
"icon": "external link",
"includeVars": true,
"keepTime": true,
"tags": [
"{{pool}}"
],
"targetBlank": true,
"type": "dashboards"
},
{
"asDropdown": true,
"icon": "external link",
"includeVars": true,
"tags": [
"SYSTEM"
],
"targetBlank": true,
"type": "dashboards"
}
],
"gnetId": null,
"rows": [
{
"title": "Errors",
"showTitle": true,
"collapse": false,
"editable": true,
"height": "60px",
"panels": [
{% from "graph_interface_errors.j2" import errors -%}
{% from "graph_interface_discards.j2" import discards -%}
{{errors("$interface_a", "$bi_id_a", "$device_a", 1)}},
{{discards("$interface_a", "$bi_id_a", "$device_a", 2)}},
{{errors("$interface_b", "$bi_id_b", "$device_b", 3)}},
{{discards("$interface_b", "$bi_id_b", "$device_b", 4)}}
]
},
{
"title": "LOAD",
"showTitle": true,
"collapse": false,
"editable": true,
"height": "250px",
"panels": [
{% from "graph_interface_load_simple.j2" import interface -%}
{{interface("$interface_a", "$bi_id_a", "$device_a", 5)}},
{{interface("$interface_b", "$bi_id_b", "$device_b", 6)}}
]
},
{
"title": "PPS",
"showTitle": true,
"collapse": false,
"editable": true,
"height": "250px",
"panels": [
{% from "graph_interface_pps.j2" import pps -%}
{{pps("$interface_a", "$bi_id_a", "$device_a", 7)}},
{{pps("$interface_b", "$bi_id_a", "$device_b", 8)}}
]
}
]
}
{% set comma = joiner(",") -%}
{
"id": "dca571a2-2018-432e-b6a5-101670b395ca",
"title": "{{device}}",
"tags": ["{{pool}}"],
"style": "dark",
"timezone": "browser",
"refresh": "15m",
"editable": true,
"hideControls": false,
"sharedCrosshair": false,
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {
"refresh_intervals": [ "5m","10m","15m"],
"time_options": ["1h","3h","6h","12h","24h","2d","7d"]
},
"templating": {
"list": [
{%if port_types %}
{% for port_type in port_types -%}
{% from 'template_port.j2' import ports -%}
{{ comma() }}{{ ports(port_type) }}
{% endfor -%},
{% endif %}
{% if subifaces %}
{% from "template_subiface.j2" import subiface -%}
{{ subiface(subifaces) }},
{% endif %}
{% include "template_device.j2" with context -%},
{% include "template_vendor.j2" with context -%},
{% include "template_platform.j2" with context -%},
{% include "template_device_id.j2" with context -%},
{% include "template_ip_info.j2" with context -%},
{% include "template_segment.j2" with context -%},
{% include "template_firmware_version.j2" with context -%},
{% include "template_discovery_interval.j2" with context -%},
{% include "template_bi_id.j2" with context -%},
{% include "template_ping_interval.j2" with context -%}
]
},
"annotations": {
"list": [
{
"datasource": "NocDS",
"enable": false,
"iconColor": "rgba(255, 96, 96, 1)",
"name": "Alarm",
"query": "{{device_id}}"
}
]
},
"schemaVersion": 12,
"version": 33,
"links": [
{
"icon": "doc",
"includeVars": true,
"keepTime": true,
"tags": [],
"targetBlank": true,
"type": "link",
"title": "png",
"tooltip": "png",
"url": "/ui/grafana/render/dashboard/script/noc.js?width=1800&dashboard=mo&id={{device_id}}"
},
{
"icon": "doc",