AE-2129 : Dashboard - Create APIs and Integrate to GUI for System Insights like Connected Devices, CPU, Memory and Throughput

Review Request #1060 — Created Sept. 16, 2025 and submitted

pmurugaiyan
AMP
amp_4_0
AE-2129
apoorva.sn, mmiriam, ngurunathan, shuinvy

Dashboard - Create APIs and Integrate to GUI for System Insights like Connected Devices, CPU, Memory and Throughput

  1. APIs has been created to fetch the latest and historical system metrics
  2. The created APIs has been integrated with the GUI.

The changes has been tested locally.

GET /system-metrics-latest

{
"cpu": {
"time": "2025-09-16T15:40:20",
"host": "AN",
"cpu_percent": 1.35
},
"memory": {
"time": "2025-09-16T15:40:20",
"host": "AN",
"mem_percent": 39.63
},
"diskio": {
"time": "2025-09-16T15:40:00",
"host": "AN",
"disk_io_percent": 100.0,
"read_speed": 142575086.93,
"write_speed": 667751099.73
},
"disk_usage": [
{
"time": "2025-09-16T15:40:20",
"host": "AN",
"device": "dm-0",
"path": "/",
"total_bytes": 47173337088.0,
"used_bytes": 10257465344.0,
"free_bytes": 36915871744.0,
"used_percent": 21.74
},
{
"time": "2025-09-16T15:40:20",
"host": "AN",
"device": "sda1",
"path": "/boot",
"total_bytes": 1006632960.0,
"used_bytes": 446136320.0,
"free_bytes": 560496640.0,
"used_percent": 44.32
}
],
"net_metrics": [
{
"time": "2025-09-16T15:40:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 174.07,
"bytes_recv_bps": 865.03
}
]
}

GET /system-metrics-history

{
"cpu_history": [
{
"time": "2025-09-16T14:41:00",
"host": "AN",
"cpu_percent": 1.15
},
{
"time": "2025-09-16T14:42:00",
"host": "AN",
"cpu_percent": 1.16
},
{
"time": "2025-09-16T14:43:00",
"host": "AN",
"cpu_percent": 2.51
},
{
"time": "2025-09-16T14:44:00",
"host": "AN",
"cpu_percent": 1.25
},
{
"time": "2025-09-16T14:45:00",
"host": "AN",
"cpu_percent": 1.1
},
{
"time": "2025-09-16T14:46:00",
"host": "AN",
"cpu_percent": 1.15
},
{
"time": "2025-09-16T14:47:00",
"host": "AN",
"cpu_percent": 2.51
},
{
"time": "2025-09-16T14:48:00",
"host": "AN",
"cpu_percent": 1.15
},
{
"time": "2025-09-16T14:49:00",
"host": "AN",
"cpu_percent": 1.1
},
{
"time": "2025-09-16T14:50:00",
"host": "AN",
"cpu_percent": 1.1
},
{
"time": "2025-09-16T14:51:00",
"host": "AN",
"cpu_percent": 1.15
},
{
"time": "2025-09-16T14:52:00",
"host": "AN",
"cpu_percent": 1.15
},
{
"time": "2025-09-16T14:53:00",
"host": "AN",
"cpu_percent": 1.3
},
{
"time": "2025-09-16T14:54:00",
"host": "AN",
"cpu_percent": 1.2
},
{
"time": "2025-09-16T14:55:00",
"host": "AN",
"cpu_percent": 1.4
},
{
"time": "2025-09-16T14:56:00",
"host": "AN",
"cpu_percent": 1.05
},
{
"time": "2025-09-16T14:57:00",
"host": "AN",
"cpu_percent": 2.16
},
{
"time": "2025-09-16T14:58:00",
"host": "AN",
"cpu_percent": 1.2
},
{
"time": "2025-09-16T14:59:00",
"host": "AN",
"cpu_percent": 2.01
},
{
"time": "2025-09-16T15:00:00",
"host": "AN",
"cpu_percent": 1.2
},
{
"time": "2025-09-16T15:01:00",
"host": "AN",
"cpu_percent": 1.25
},
{
"time": "2025-09-16T15:02:00",
"host": "AN",
"cpu_percent": 1.76
},
{
"time": "2025-09-16T15:03:00",
"host": "AN",
"cpu_percent": 1.2
},
{
"time": "2025-09-16T15:04:00",
"host": "AN",
"cpu_percent": 1.1
},
{
"time": "2025-09-16T15:05:00",
"host": "AN",
"cpu_percent": 1.15
},
{
"time": "2025-09-16T15:06:00",
"host": "AN",
"cpu_percent": 1.3
},
{
"time": "2025-09-16T15:07:00",
"host": "AN",
"cpu_percent": 1.1
},
{
"time": "2025-09-16T15:08:00",
"host": "AN",
"cpu_percent": 1.15
},
{
"time": "2025-09-16T15:09:00",
"host": "AN",
"cpu_percent": 1.0
},
{
"time": "2025-09-16T15:10:00",
"host": "AN",
"cpu_percent": 1.35
},
{
"time": "2025-09-16T15:11:00",
"host": "AN",
"cpu_percent": 1.05
},
{
"time": "2025-09-16T15:12:00",
"host": "AN",
"cpu_percent": 1.1
},
{
"time": "2025-09-16T15:13:00",
"host": "AN",
"cpu_percent": 2.11
},
{
"time": "2025-09-16T15:14:00",
"host": "AN",
"cpu_percent": 1.15
},
{
"time": "2025-09-16T15:15:00",
"host": "AN",
"cpu_percent": 1.15
},
{
"time": "2025-09-16T15:16:00",
"host": "AN",
"cpu_percent": 2.06
},
{
"time": "2025-09-16T15:17:00",
"host": "AN",
"cpu_percent": 2.26
},
{
"time": "2025-09-16T15:18:00",
"host": "AN",
"cpu_percent": 2.21
},
{
"time": "2025-09-16T15:19:00",
"host": "AN",
"cpu_percent": 2.01
},
{
"time": "2025-09-16T15:20:00",
"host": "AN",
"cpu_percent": 1.16
},
{
"time": "2025-09-16T15:21:00",
"host": "AN",
"cpu_percent": 1.3
},
{
"time": "2025-09-16T15:22:00",
"host": "AN",
"cpu_percent": 1.2
},
{
"time": "2025-09-16T15:23:00",
"host": "AN",
"cpu_percent": 2.87
},
{
"time": "2025-09-16T15:24:00",
"host": "AN",
"cpu_percent": 4.59
},
{
"time": "2025-09-16T15:25:00",
"host": "AN",
"cpu_percent": 1.96
},
{
"time": "2025-09-16T15:26:00",
"host": "AN",
"cpu_percent": 1.66
},
{
"time": "2025-09-16T15:27:00",
"host": "AN",
"cpu_percent": 1.31
},
{
"time": "2025-09-16T15:28:00",
"host": "AN",
"cpu_percent": 1.05
},
{
"time": "2025-09-16T15:29:00",
"host": "AN",
"cpu_percent": 1.1
},
{
"time": "2025-09-16T15:30:00",
"host": "AN",
"cpu_percent": 1.1
},
{
"time": "2025-09-16T15:31:00",
"host": "AN",
"cpu_percent": 1.2
},
{
"time": "2025-09-16T15:32:00",
"host": "AN",
"cpu_percent": 1.15
},
{
"time": "2025-09-16T15:33:00",
"host": "AN",
"cpu_percent": 1.2
},
{
"time": "2025-09-16T15:34:00",
"host": "AN",
"cpu_percent": 1.35
},
{
"time": "2025-09-16T15:35:00",
"host": "AN",
"cpu_percent": 1.3
},
{
"time": "2025-09-16T15:36:00",
"host": "AN",
"cpu_percent": 1.05
},
{
"time": "2025-09-16T15:37:00",
"host": "AN",
"cpu_percent": 1.4
},
{
"time": "2025-09-16T15:38:00",
"host": "AN",
"cpu_percent": 1.35
},
{
"time": "2025-09-16T15:39:00",
"host": "AN",
"cpu_percent": 1.2
},
{
"time": "2025-09-16T15:40:00",
"host": "AN",
"cpu_percent": 1.25
}
],
"mem_history": [
{
"time": "2025-09-16T14:41:00",
"host": "AN",
"mem_percent": 39.74
},
{
"time": "2025-09-16T14:42:00",
"host": "AN",
"mem_percent": 39.54
},
{
"time": "2025-09-16T14:43:00",
"host": "AN",
"mem_percent": 39.61
},
{
"time": "2025-09-16T14:44:00",
"host": "AN",
"mem_percent": 39.62
},
{
"time": "2025-09-16T14:45:00",
"host": "AN",
"mem_percent": 39.63
},
{
"time": "2025-09-16T14:46:00",
"host": "AN",
"mem_percent": 39.64
},
{
"time": "2025-09-16T14:47:00",
"host": "AN",
"mem_percent": 39.6
},
{
"time": "2025-09-16T14:48:00",
"host": "AN",
"mem_percent": 39.59
},
{
"time": "2025-09-16T14:49:00",
"host": "AN",
"mem_percent": 39.58
},
{
"time": "2025-09-16T14:50:00",
"host": "AN",
"mem_percent": 39.57
},
{
"time": "2025-09-16T14:51:00",
"host": "AN",
"mem_percent": 39.56
},
{
"time": "2025-09-16T14:52:00",
"host": "AN",
"mem_percent": 39.55
},
{
"time": "2025-09-16T14:53:00",
"host": "AN",
"mem_percent": 39.56
},
{
"time": "2025-09-16T14:54:00",
"host": "AN",
"mem_percent": 39.56
},
{
"time": "2025-09-16T14:55:00",
"host": "AN",
"mem_percent": 39.53
},
{
"time": "2025-09-16T14:56:00",
"host": "AN",
"mem_percent": 39.53
},
{
"time": "2025-09-16T14:57:00",
"host": "AN",
"mem_percent": 39.57
},
{
"time": "2025-09-16T14:58:00",
"host": "AN",
"mem_percent": 39.59
},
{
"time": "2025-09-16T14:59:00",
"host": "AN",
"mem_percent": 39.6
},
{
"time": "2025-09-16T15:00:00",
"host": "AN",
"mem_percent": 39.54
},
{
"time": "2025-09-16T15:01:00",
"host": "AN",
"mem_percent": 39.59
},
{
"time": "2025-09-16T15:02:00",
"host": "AN",
"mem_percent": 39.63
},
{
"time": "2025-09-16T15:03:00",
"host": "AN",
"mem_percent": 39.63
},
{
"time": "2025-09-16T15:04:00",
"host": "AN",
"mem_percent": 39.62
},
{
"time": "2025-09-16T15:05:00",
"host": "AN",
"mem_percent": 39.62
},
{
"time": "2025-09-16T15:06:00",
"host": "AN",
"mem_percent": 39.63
},
{
"time": "2025-09-16T15:07:00",
"host": "AN",
"mem_percent": 39.61
},
{
"time": "2025-09-16T15:08:00",
"host": "AN",
"mem_percent": 39.56
},
{
"time": "2025-09-16T15:09:00",
"host": "AN",
"mem_percent": 39.58
},
{
"time": "2025-09-16T15:10:00",
"host": "AN",
"mem_percent": 39.56
},
{
"time": "2025-09-16T15:11:00",
"host": "AN",
"mem_percent": 39.57
},
{
"time": "2025-09-16T15:12:00",
"host": "AN",
"mem_percent": 39.54
},
{
"time": "2025-09-16T15:13:00",
"host": "AN",
"mem_percent": 39.56
},
{
"time": "2025-09-16T15:14:00",
"host": "AN",
"mem_percent": 39.54
},
{
"time": "2025-09-16T15:15:00",
"host": "AN",
"mem_percent": 39.54
},
{
"time": "2025-09-16T15:16:00",
"host": "AN",
"mem_percent": 39.49
},
{
"time": "2025-09-16T15:17:00",
"host": "AN",
"mem_percent": 39.52
},
{
"time": "2025-09-16T15:18:00",
"host": "AN",
"mem_percent": 39.54
},
{
"time": "2025-09-16T15:19:00",
"host": "AN",
"mem_percent": 39.55
},
{
"time": "2025-09-16T15:20:00",
"host": "AN",
"mem_percent": 39.58
},
{
"time": "2025-09-16T15:21:00",
"host": "AN",
"mem_percent": 39.56
},
{
"time": "2025-09-16T15:22:00",
"host": "AN",
"mem_percent": 39.55
},
{
"time": "2025-09-16T15:23:00",
"host": "AN",
"mem_percent": 39.55
},
{
"time": "2025-09-16T15:24:00",
"host": "AN",
"mem_percent": 39.56
},
{
"time": "2025-09-16T15:25:00",
"host": "AN",
"mem_percent": 39.57
},
{
"time": "2025-09-16T15:26:00",
"host": "AN",
"mem_percent": 39.56
},
{
"time": "2025-09-16T15:27:00",
"host": "AN",
"mem_percent": 39.59
},
{
"time": "2025-09-16T15:28:00",
"host": "AN",
"mem_percent": 39.58
},
{
"time": "2025-09-16T15:29:00",
"host": "AN",
"mem_percent": 39.57
},
{
"time": "2025-09-16T15:30:00",
"host": "AN",
"mem_percent": 39.56
},
{
"time": "2025-09-16T15:31:00",
"host": "AN",
"mem_percent": 39.55
},
{
"time": "2025-09-16T15:32:00",
"host": "AN",
"mem_percent": 39.55
},
{
"time": "2025-09-16T15:33:00",
"host": "AN",
"mem_percent": 39.54
},
{
"time": "2025-09-16T15:34:00",
"host": "AN",
"mem_percent": 39.52
},
{
"time": "2025-09-16T15:35:00",
"host": "AN",
"mem_percent": 39.55
},
{
"time": "2025-09-16T15:36:00",
"host": "AN",
"mem_percent": 39.59
},
{
"time": "2025-09-16T15:37:00",
"host": "AN",
"mem_percent": 39.58
},
{
"time": "2025-09-16T15:38:00",
"host": "AN",
"mem_percent": 39.57
},
{
"time": "2025-09-16T15:39:00",
"host": "AN",
"mem_percent": 39.6
},
{
"time": "2025-09-16T15:40:00",
"host": "AN",
"mem_percent": 39.59
}
],
"diskio_history": [
{
"time": "2025-09-16T14:41:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T14:42:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T14:43:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T14:44:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T14:45:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T14:46:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T14:47:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T14:48:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T14:49:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T14:50:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T14:51:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T14:52:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T14:53:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T14:54:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T14:55:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T14:56:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T14:57:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T14:58:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T14:59:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T15:00:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T15:01:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T15:02:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T15:03:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T15:04:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T15:05:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T15:06:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T15:07:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T15:08:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T15:09:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T15:10:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T15:11:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T15:12:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T15:13:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T15:14:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T15:15:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T15:16:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T15:17:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T15:18:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T15:19:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T15:20:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T15:21:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T15:22:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T15:23:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T15:24:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T15:25:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T15:26:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T15:27:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T15:28:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T15:29:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T15:30:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T15:31:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T15:32:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T15:33:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T15:34:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T15:35:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T15:36:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T15:37:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T15:38:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T15:39:00",
"host": "AN",
"disk_io_percent": 100.0
},
{
"time": "2025-09-16T15:40:00",
"host": "AN",
"disk_io_percent": 100.0
}
],
"net_history": [
{
"time": "2025-09-16T14:41:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 1564.0,
"bytes_recv_bps": 8147.68
},
{
"time": "2025-09-16T14:42:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 1666.27,
"bytes_recv_bps": 8393.33
},
{
"time": "2025-09-16T14:43:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 1508.4,
"bytes_recv_bps": 8070.53
},
{
"time": "2025-09-16T14:44:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 1420.53,
"bytes_recv_bps": 7718.27
},
{
"time": "2025-09-16T14:45:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 1425.07,
"bytes_recv_bps": 7407.47
},
{
"time": "2025-09-16T14:46:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 1405.6,
"bytes_recv_bps": 7346.27
},
{
"time": "2025-09-16T14:47:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 1445.07,
"bytes_recv_bps": 7627.73
},
{
"time": "2025-09-16T14:48:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 1497.33,
"bytes_recv_bps": 7472.8
},
{
"time": "2025-09-16T14:49:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 1445.07,
"bytes_recv_bps": 7565.07
},
{
"time": "2025-09-16T14:50:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 1448.53,
"bytes_recv_bps": 7291.73
},
{
"time": "2025-09-16T14:51:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 1405.6,
"bytes_recv_bps": 7617.73
},
{
"time": "2025-09-16T14:52:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 1425.07,
"bytes_recv_bps": 7639.07
},
{
"time": "2025-09-16T14:53:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 1477.87,
"bytes_recv_bps": 7760.53
},
{
"time": "2025-09-16T14:54:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 1428.53,
"bytes_recv_bps": 7468.0
},
{
"time": "2025-09-16T14:55:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 1409.07,
"bytes_recv_bps": 7363.87
},
{
"time": "2025-09-16T14:56:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 1417.07,
"bytes_recv_bps": 7417.33
},
{
"time": "2025-09-16T14:57:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 2283.2,
"bytes_recv_bps": 8197.2
},
{
"time": "2025-09-16T14:58:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 2204.27,
"bytes_recv_bps": 8358.13
},
{
"time": "2025-09-16T14:59:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 1449.6,
"bytes_recv_bps": 7652.4
},
{
"time": "2025-09-16T15:00:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 1442.4,
"bytes_recv_bps": 7468.27
},
{
"time": "2025-09-16T15:01:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 1405.07,
"bytes_recv_bps": 7322.13
},
{
"time": "2025-09-16T15:02:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 1425.07,
"bytes_recv_bps": 7904.27
},
{
"time": "2025-09-16T15:03:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 1483.87,
"bytes_recv_bps": 7658.53
},
{
"time": "2025-09-16T15:04:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 1452.0,
"bytes_recv_bps": 7636.13
},
{
"time": "2025-09-16T15:05:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 2300.53,
"bytes_recv_bps": 7890.93
},
{
"time": "2025-09-16T15:06:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 2131.6,
"bytes_recv_bps": 8072.8
},
{
"time": "2025-09-16T15:07:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 2481.6,
"bytes_recv_bps": 7885.73
},
{
"time": "2025-09-16T15:08:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 2911.47,
"bytes_recv_bps": 8492.13
},
{
"time": "2025-09-16T15:09:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 3661.07,
"bytes_recv_bps": 8990.93
},
{
"time": "2025-09-16T15:10:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 2128.0,
"bytes_recv_bps": 8093.33
},
{
"time": "2025-09-16T15:11:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 1417.07,
"bytes_recv_bps": 7367.47
},
{
"time": "2025-09-16T15:12:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 1409.07,
"bytes_recv_bps": 7563.73
},
{
"time": "2025-09-16T15:13:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 2266.93,
"bytes_recv_bps": 8082.53
},
{
"time": "2025-09-16T15:14:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 4056.53,
"bytes_recv_bps": 8811.2
},
{
"time": "2025-09-16T15:15:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 2867.73,
"bytes_recv_bps": 8149.73
},
{
"time": "2025-09-16T15:16:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 2923.47,
"bytes_recv_bps": 8535.87
},
{
"time": "2025-09-16T15:17:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 2872.53,
"bytes_recv_bps": 8502.67
},
{
"time": "2025-09-16T15:18:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 3686.93,
"bytes_recv_bps": 9407.73
},
{
"time": "2025-09-16T15:19:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 3757.6,
"bytes_recv_bps": 9206.53
},
{
"time": "2025-09-16T15:20:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 6043.2,
"bytes_recv_bps": 8272.93
},
{
"time": "2025-09-16T15:21:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 1455.47,
"bytes_recv_bps": 7707.47
},
{
"time": "2025-09-16T15:22:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 1397.6,
"bytes_recv_bps": 7660.8
},
{
"time": "2025-09-16T15:23:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 4546.53,
"bytes_recv_bps": 8121.73
},
{
"time": "2025-09-16T15:24:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 1460.0,
"bytes_recv_bps": 7554.4
},
{
"time": "2025-09-16T15:25:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 1412.53,
"bytes_recv_bps": 7324.0
},
{
"time": "2025-09-16T15:26:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 1409.07,
"bytes_recv_bps": 7661.87
},
{
"time": "2025-09-16T15:27:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 1369.6,
"bytes_recv_bps": 7443.87
},
{
"time": "2025-09-16T15:28:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 1449.87,
"bytes_recv_bps": 7592.4
},
{
"time": "2025-09-16T15:29:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 1398.0,
"bytes_recv_bps": 7526.4
},
{
"time": "2025-09-16T15:30:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 1400.53,
"bytes_recv_bps": 7657.6
},
{
"time": "2025-09-16T15:31:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 1410.67,
"bytes_recv_bps": 7419.47
},
{
"time": "2025-09-16T15:32:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 1397.6,
"bytes_recv_bps": 7587.73
},
{
"time": "2025-09-16T15:33:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 1389.07,
"bytes_recv_bps": 7726.53
},
{
"time": "2025-09-16T15:34:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 1490.8,
"bytes_recv_bps": 7712.27
},
{
"time": "2025-09-16T15:35:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 1436.53,
"bytes_recv_bps": 7556.0
},
{
"time": "2025-09-16T15:36:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 1417.07,
"bytes_recv_bps": 7597.2
},
{
"time": "2025-09-16T15:37:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 1413.6,
"bytes_recv_bps": 7587.2
},
{
"time": "2025-09-16T15:38:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 1439.07,
"bytes_recv_bps": 8006.93
},
{
"time": "2025-09-16T15:39:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 1470.8,
"bytes_recv_bps": 7661.2
},
{
"time": "2025-09-16T15:40:00",
"host": "AN",
"interface": "ens32",
"bytes_sent_bps": 1922.53,
"bytes_recv_bps": 8157.47
}
]
}


Description From Last Updated

Evemts, Alerts and services show -1 if no data. Can we set that to 0 instead

apoorva.snapoorva.sn

Why do we need Influx Repo ?

apoorva.snapoorva.sn

Can we use JSONResponse only instead of this

apoorva.snapoorva.sn

Same as above

apoorva.snapoorva.sn

There is a DB Connection utility called "db_client.py". you can use that for executing query on DB.

apoorva.snapoorva.sn

Can we seperate the DB layer where we execute queries? Service layer we can keep it for processing any data …

apoorva.snapoorva.sn
shuinvy
  1. Ship It!
  2. 
      
apoorva.sn
  1. 
      
  2. Evemts, Alerts and services show -1 if no data. Can we set that to 0 instead

    1. That was intentional, to represent its not updated. (To show the invalid value).

    2. showing -1 in UI does not look good. Because we usually validate data before we show in the UI right

    3. yes, for these fields we dont have the APIs yet, So, I have updated -1 (invalid value) until we integrate the API. All other metrics/graphs in that page was integrated. Will remove the invalid value as soon as the APIs are integrated.

  3. Why do we need Influx Repo ?

    1. It was removed without proper testing, the repo is a must to install the telegraf.

    2. Did not get this. Why should we have influx repo to install telegraf? Since we are not using Influx db now it does not make sense to have repo

    3. Telegraf is not readily available in the common repo, we have to get add the repository in our system to install it. Telegraf is part of influxdata.
      You can refer this - https://docs.influxdata.com/telegraf/v1/install/?t=RedHat+%26amp%3B+CentOS#download-and-install-telegraf

  4. Can we use JSONResponse only instead of this

    1. HttpResponse works. Whats the advantage with JSONResponse!

    2. Since we are sending the data in Json format only it is better we can use JSONResonse directly and there will be no need to specify application/json as content

    3. Fixed.

  5. There is a DB Connection utility called "db_client.py". you can use that for executing query on DB.

    1. db_client was introduced by your last commit. Will check that, if suits will update accordingly going forward.

    2. I have committed my changes now. Can you use that ?

    3. The db_client is tightly coupled for the direct access, the connection & execute_query can be separated later with the upcoming commits.

  6. Can we seperate the DB layer where we execute queries? Service layer we can keep it for processing any data we get from the DB Layer

    1. The DB layer is separate now! The service layer processing the db results. The database layer only meant for handling connections and executing the queries.

    2. Controller for Request/Response and validation on Request
      Service mainly for bussiness level logic and any validation code
      DB Layer is just for DB opeartion and queries.

    3. Data access layer can be added at a later stage if required.

  7. 
      
pmurugaiyan
apoorva.sn
  1. Reuse the db_client utility for future reviews.

  2. 
      
pmurugaiyan
Review request changed

Status: Closed (submitted)

Loading...