714 lines
16 KiB
JSON
714 lines
16 KiB
JSON
{
|
|
"annotations": {
|
|
"list": []
|
|
},
|
|
"editable": true,
|
|
"fiscalYearStartMonth": 0,
|
|
"graphTooltip": 1,
|
|
"id": null,
|
|
"links": [],
|
|
"liveNow": false,
|
|
"panels": [
|
|
{
|
|
"collapsed": false,
|
|
"gridPos": {
|
|
"h": 1,
|
|
"w": 24,
|
|
"x": 0,
|
|
"y": 0
|
|
},
|
|
"id": 100,
|
|
"title": "\ud83d\udcca Indicadores Operacionais de Rede GPON (NOC)",
|
|
"type": "row"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"type": "mysql",
|
|
"uid": "zbx-gpon-api"
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {
|
|
"mode": "palette-classic"
|
|
},
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{
|
|
"color": "blue",
|
|
"value": null
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"gridPos": {
|
|
"h": 4,
|
|
"w": 4,
|
|
"x": 0,
|
|
"y": 1
|
|
},
|
|
"id": 1,
|
|
"options": {
|
|
"colorMode": "value",
|
|
"graphMode": "none",
|
|
"justifyMode": "center",
|
|
"orientation": "auto",
|
|
"reduceOptions": {
|
|
"calcs": [
|
|
"lastNotNull"
|
|
],
|
|
"fields": "",
|
|
"values": false
|
|
},
|
|
"textMode": "auto"
|
|
},
|
|
"pluginVersion": "10.0.0",
|
|
"targets": [
|
|
{
|
|
"format": "table",
|
|
"rawSql": "SELECT COUNT(*) as value FROM onus_atual;",
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "Total de ONUs",
|
|
"type": "stat"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"type": "mysql",
|
|
"uid": "zbx-gpon-api"
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {
|
|
"mode": "thresholds"
|
|
},
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{
|
|
"color": "green",
|
|
"value": null
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"gridPos": {
|
|
"h": 4,
|
|
"w": 4,
|
|
"x": 4,
|
|
"y": 1
|
|
},
|
|
"id": 2,
|
|
"options": {
|
|
"colorMode": "value",
|
|
"graphMode": "none",
|
|
"justifyMode": "center",
|
|
"orientation": "auto",
|
|
"reduceOptions": {
|
|
"calcs": [
|
|
"lastNotNull"
|
|
],
|
|
"fields": "",
|
|
"values": false
|
|
},
|
|
"textMode": "auto"
|
|
},
|
|
"targets": [
|
|
{
|
|
"format": "table",
|
|
"rawSql": "SELECT COUNT(*) as value FROM onus_atual WHERE status = 'online';",
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "ONUs Online",
|
|
"type": "stat"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"type": "mysql",
|
|
"uid": "zbx-gpon-api"
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {
|
|
"mode": "thresholds"
|
|
},
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{
|
|
"color": "green",
|
|
"value": null
|
|
},
|
|
{
|
|
"color": "red",
|
|
"value": 1
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"gridPos": {
|
|
"h": 4,
|
|
"w": 4,
|
|
"x": 8,
|
|
"y": 1
|
|
},
|
|
"id": 3,
|
|
"options": {
|
|
"colorMode": "value",
|
|
"graphMode": "none",
|
|
"justifyMode": "center",
|
|
"orientation": "auto",
|
|
"reduceOptions": {
|
|
"calcs": [
|
|
"lastNotNull"
|
|
],
|
|
"fields": "",
|
|
"values": false
|
|
},
|
|
"textMode": "auto"
|
|
},
|
|
"targets": [
|
|
{
|
|
"format": "table",
|
|
"rawSql": "SELECT COUNT(*) as value FROM onus_atual WHERE status IN ('offline', 'los');",
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "ONUs Offline / LOS",
|
|
"type": "stat"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"type": "mysql",
|
|
"uid": "zbx-gpon-api"
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {
|
|
"mode": "thresholds"
|
|
},
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{
|
|
"color": "green",
|
|
"value": null
|
|
},
|
|
{
|
|
"color": "orange",
|
|
"value": 1
|
|
},
|
|
{
|
|
"color": "red",
|
|
"value": 10
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"gridPos": {
|
|
"h": 4,
|
|
"w": 4,
|
|
"x": 12,
|
|
"y": 1
|
|
},
|
|
"id": 4,
|
|
"options": {
|
|
"colorMode": "value",
|
|
"graphMode": "none",
|
|
"justifyMode": "center",
|
|
"orientation": "auto",
|
|
"reduceOptions": {
|
|
"calcs": [
|
|
"lastNotNull"
|
|
],
|
|
"fields": "",
|
|
"values": false
|
|
},
|
|
"textMode": "auto"
|
|
},
|
|
"targets": [
|
|
{
|
|
"format": "table",
|
|
"rawSql": "SELECT COUNT(*) as value FROM onus_atual WHERE status = 'online' AND rx_dbm IS NOT NULL AND (rx_dbm < -27.00 OR rx_dbm > -8.00);",
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "Sinal Cr\u00edtico (< -27 dBm)",
|
|
"type": "stat"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"type": "mysql",
|
|
"uid": "zbx-gpon-api"
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {
|
|
"mode": "thresholds"
|
|
},
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{
|
|
"color": "green",
|
|
"value": null
|
|
},
|
|
{
|
|
"color": "yellow",
|
|
"value": 1
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"gridPos": {
|
|
"h": 4,
|
|
"w": 4,
|
|
"x": 16,
|
|
"y": 1
|
|
},
|
|
"id": 5,
|
|
"options": {
|
|
"colorMode": "value",
|
|
"graphMode": "none",
|
|
"justifyMode": "center",
|
|
"orientation": "auto",
|
|
"reduceOptions": {
|
|
"calcs": [
|
|
"lastNotNull"
|
|
],
|
|
"fields": "",
|
|
"values": false
|
|
},
|
|
"textMode": "auto"
|
|
},
|
|
"targets": [
|
|
{
|
|
"format": "table",
|
|
"rawSql": "SELECT COUNT(*) as value FROM onus_atual WHERE status = 'online' AND rx_dbm IS NOT NULL AND rx_dbm BETWEEN -27.00 AND -25.01;",
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "Sinal Alerta (-25 a -27 dBm)",
|
|
"type": "stat"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"type": "mysql",
|
|
"uid": "zbx-gpon-api"
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {
|
|
"mode": "thresholds"
|
|
},
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{
|
|
"color": "purple",
|
|
"value": null
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"gridPos": {
|
|
"h": 4,
|
|
"w": 4,
|
|
"x": 20,
|
|
"y": 1
|
|
},
|
|
"id": 6,
|
|
"options": {
|
|
"colorMode": "value",
|
|
"graphMode": "none",
|
|
"justifyMode": "center",
|
|
"orientation": "auto",
|
|
"reduceOptions": {
|
|
"calcs": [
|
|
"lastNotNull"
|
|
],
|
|
"fields": "",
|
|
"values": false
|
|
},
|
|
"textMode": "auto"
|
|
},
|
|
"targets": [
|
|
{
|
|
"format": "table",
|
|
"rawSql": "SELECT COUNT(*) as value FROM bng_sessoes_atual;",
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "Sess\u00f5es BNG Ativas",
|
|
"type": "stat"
|
|
},
|
|
{
|
|
"collapsed": false,
|
|
"gridPos": {
|
|
"h": 1,
|
|
"w": 24,
|
|
"x": 0,
|
|
"y": 5
|
|
},
|
|
"id": 101,
|
|
"title": "\ud83d\udcc8 Distribui\u00e7\u00e3o e Sa\u00fade da Planta \u00d3ptica",
|
|
"type": "row"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"type": "mysql",
|
|
"uid": "zbx-gpon-api"
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {
|
|
"mode": "palette-classic"
|
|
},
|
|
"mappings": []
|
|
}
|
|
},
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 8,
|
|
"x": 0,
|
|
"y": 6
|
|
},
|
|
"id": 7,
|
|
"options": {
|
|
"legend": {
|
|
"displayMode": "table",
|
|
"placement": "right",
|
|
"values": [
|
|
"value",
|
|
"percent"
|
|
]
|
|
},
|
|
"pieType": "donut",
|
|
"reduceOptions": {
|
|
"calcs": [
|
|
"lastNotNull"
|
|
],
|
|
"fields": "",
|
|
"values": false
|
|
},
|
|
"tooltip": {
|
|
"mode": "single"
|
|
}
|
|
},
|
|
"targets": [
|
|
{
|
|
"format": "table",
|
|
"rawSql": "SELECT status as metric, COUNT(*) as value FROM onus_atual GROUP BY status;",
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "Status Operacional das ONUs",
|
|
"type": "piechart"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"type": "mysql",
|
|
"uid": "zbx-gpon-api"
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {
|
|
"mode": "palette-classic"
|
|
},
|
|
"mappings": []
|
|
}
|
|
},
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 16,
|
|
"x": 8,
|
|
"y": 6
|
|
},
|
|
"id": 8,
|
|
"options": {
|
|
"displayLabels": [
|
|
"value"
|
|
],
|
|
"legend": {
|
|
"displayMode": "list",
|
|
"placement": "bottom"
|
|
},
|
|
"orientation": "horizontal",
|
|
"tooltip": {
|
|
"mode": "single"
|
|
}
|
|
},
|
|
"targets": [
|
|
{
|
|
"format": "table",
|
|
"rawSql": "SELECT \n CASE \n WHEN rx_dbm IS NULL OR status != 'online' THEN 'Offline / Sem Leitura'\n WHEN rx_dbm > -15.00 THEN 'Sinal Excessivo (> -15 dBm)'\n WHEN rx_dbm BETWEEN -24.00 AND -15.00 THEN 'Excelente (-15 a -24 dBm)'\n WHEN rx_dbm BETWEEN -27.00 AND -24.01 THEN 'Atenuado / Alerta (-24 a -27 dBm)'\n WHEN rx_dbm < -27.00 THEN 'Cr\u00edtico (< -27 dBm)'\n END as metric,\n COUNT(*) as value\nFROM onus_atual\nGROUP BY metric\nORDER BY value DESC;",
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "Faixas de Pot\u00eancia \u00d3ptica Rx das ONUs Online",
|
|
"type": "barchart"
|
|
},
|
|
{
|
|
"collapsed": false,
|
|
"gridPos": {
|
|
"h": 1,
|
|
"w": 24,
|
|
"x": 0,
|
|
"y": 14
|
|
},
|
|
"id": 102,
|
|
"title": "\u26a0\ufe0f Fila de Atendimento NOC: ONUs com Sinal Atenuado / Cr\u00edtico",
|
|
"type": "row"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"type": "mysql",
|
|
"uid": "zbx-gpon-api"
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {
|
|
"mode": "thresholds"
|
|
},
|
|
"custom": {
|
|
"align": "auto",
|
|
"cellOptions": {
|
|
"type": "auto"
|
|
},
|
|
"inspect": false
|
|
},
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{
|
|
"color": "red",
|
|
"value": null
|
|
},
|
|
{
|
|
"color": "yellow",
|
|
"value": -27
|
|
},
|
|
{
|
|
"color": "green",
|
|
"value": -24
|
|
},
|
|
{
|
|
"color": "red",
|
|
"value": -8
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"overrides": [
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "rx_dbm"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.cellOptions",
|
|
"value": {
|
|
"mode": "gradient",
|
|
"type": "color-background"
|
|
}
|
|
},
|
|
{
|
|
"id": "unit",
|
|
"value": "dBm"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "distancia_metros"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "unit",
|
|
"value": "lengthm"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"gridPos": {
|
|
"h": 10,
|
|
"w": 24,
|
|
"x": 0,
|
|
"y": 15
|
|
},
|
|
"id": 9,
|
|
"options": {
|
|
"footer": {
|
|
"countRows": false,
|
|
"enablePagination": true,
|
|
"fields": "",
|
|
"reducer": [
|
|
"sum"
|
|
],
|
|
"show": true
|
|
},
|
|
"showHeader": true,
|
|
"sortBy": [
|
|
{
|
|
"desc": false,
|
|
"displayName": "rx_dbm"
|
|
}
|
|
]
|
|
},
|
|
"targets": [
|
|
{
|
|
"format": "table",
|
|
"rawSql": "SELECT \n d.nome as olt,\n CONCAT(o.slot, '/', o.pon, ':', o.onu_id) as porta_pon,\n o.serial,\n o.onu_nome as cliente,\n o.modelo,\n o.status,\n o.rx_dbm,\n o.tx_dbm,\n o.distancia_metros,\n o.atualizado_em as ultima_leitura\nFROM onus_atual o\nJOIN dispositivos_rede d ON d.id = o.dispositivo_id\nWHERE o.status = 'online' AND o.rx_dbm IS NOT NULL\nORDER BY o.rx_dbm ASC\nLIMIT 50;",
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "Top 50 ONUs com Pior Pot\u00eancia \u00d3ptica Rx (Ordem Cr\u00edtica)",
|
|
"type": "table"
|
|
},
|
|
{
|
|
"collapsed": false,
|
|
"gridPos": {
|
|
"h": 1,
|
|
"w": 24,
|
|
"x": 0,
|
|
"y": 25
|
|
},
|
|
"id": 103,
|
|
"title": "\ud83d\udda5\ufe0f Capacidade e Sa\u00fade por OLT",
|
|
"type": "row"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"type": "mysql",
|
|
"uid": "zbx-gpon-api"
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {
|
|
"mode": "thresholds"
|
|
},
|
|
"custom": {
|
|
"align": "auto",
|
|
"cellOptions": {
|
|
"type": "auto"
|
|
}
|
|
},
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{
|
|
"color": "red",
|
|
"value": null
|
|
},
|
|
{
|
|
"color": "yellow",
|
|
"value": 85
|
|
},
|
|
{
|
|
"color": "green",
|
|
"value": 95
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"overrides": [
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "taxa_online_pct"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.cellOptions",
|
|
"value": {
|
|
"mode": "basic",
|
|
"type": "color-background"
|
|
}
|
|
},
|
|
{
|
|
"id": "unit",
|
|
"value": "percent"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 24,
|
|
"x": 0,
|
|
"y": 26
|
|
},
|
|
"id": 10,
|
|
"options": {
|
|
"footer": {
|
|
"enablePagination": true,
|
|
"show": true
|
|
},
|
|
"showHeader": true,
|
|
"sortBy": [
|
|
{
|
|
"desc": true,
|
|
"displayName": "total_onus"
|
|
}
|
|
]
|
|
},
|
|
"targets": [
|
|
{
|
|
"format": "table",
|
|
"rawSql": "SELECT \n d.nome as olt,\n d.ip,\n d.fabricante,\n d.modelo,\n COUNT(o.id) as total_onus,\n SUM(CASE WHEN o.status = 'online' THEN 1 ELSE 0 END) as online,\n SUM(CASE WHEN o.status != 'online' THEN 1 ELSE 0 END) as offline,\n ROUND(SUM(CASE WHEN o.status = 'online' THEN 1 ELSE 0 END) / NULLIF(COUNT(o.id), 0) * 100, 1) as taxa_online_pct,\n d.ultima_coleta\nFROM dispositivos_rede d\nLEFT JOIN onus_atual o ON o.dispositivo_id = d.id\nWHERE d.tipo = 'OLT'\nGROUP BY d.id, d.nome, d.ip, d.fabricante, d.modelo, d.ultima_coleta\nORDER BY total_onus DESC;",
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "Vis\u00e3o Geral das OLTs Monitoradas",
|
|
"type": "table"
|
|
}
|
|
],
|
|
"refresh": "30s",
|
|
"schemaVersion": 38,
|
|
"style": "dark",
|
|
"tags": [
|
|
"gpon",
|
|
"noc",
|
|
"telemetria",
|
|
"olt"
|
|
],
|
|
"templating": {
|
|
"list": []
|
|
},
|
|
"time": {
|
|
"from": "now-24h",
|
|
"to": "now"
|
|
},
|
|
"timepicker": {
|
|
"refresh_intervals": [
|
|
"10s",
|
|
"30s",
|
|
"1m",
|
|
"5m"
|
|
]
|
|
},
|
|
"timezone": "browser",
|
|
"title": "GPON NOC Overview - Zabbix GPON API",
|
|
"uid": "gpon-noc-overview",
|
|
"version": 1
|
|
} |