AE-2126: Monitoring- Device Metrics API's
Review Request #1059 — Created Sept. 16, 2025 and submitted — Latest diff uploaded
| Information | |
|---|---|
| apoorva.sn | |
| AMP | |
| amp_4_0 | |
| AE-2126 | |
| Reviewers | |
| apoorva.sn, mmiriam, ngurunathan, shuinvy | |
Problem
Create new API for Monitoring- Device Metrics data
Solution
Have created new endpoint /device_metric for getting the data for VMonitoring- Device Metrics data.
Also have added logic to query the Timscale DB for getting the respective information
Devices Metrics
Metrics:
[root@AN admin]# curl 'http://127.0.0.1:8000/device_metrics' \
-X POST \
-H 'Accept: application/json, text/plain, /' \
-H 'Content-Type: application/json' \
-H 'X-CSRFToken: d3euq0jLrrgh4xMjLZClWaxVg7XcJGdI' \
-b 'csrftoken=d3euq0jLrrgh4xMjLZClWaxVg7XcJGdI; hive_key=1; django_language=en; csrf_token=d3euq0jLrrgh4xMjLZClWaxVg7XcJGdI; current_user=array; hive_sess=907124fd-cd08-479b-a24a-e4cbeac70fd5' \
--data-raw '{
"interval": "20s",
"from": "now-15m",
"to": "now"
}'
{"status": 1, "data": {"device_stats": [{"agent_host": "192.168.162.166", "cpu": 9.0, "mem": 51.0, "net_mem": 3.0, "connections": 7}], "net_throughput": [{"ts": "2025-09-16T21:49:40+05:30", "agent_host": "192.168.162.166", "received": 0.0, "sent": 0.0}, {"ts": "2025-09-16T21:50:00+05:30", "agent_host": "192.168.162.166", "received": 0.0, "sent": 0.0}, {"ts": "2025-09-16T21:50:20+05:30", "agent_host": "192.168.162.166", "received": 96121.2, "sent": 168021.2}, {"ts": "2025-09-16T21:50:40+05:30", "agent_host": "192.168.162.166", "received": 105604.4, "sent": 167826.8}, {"ts": "2025-09-16T21:51:00+05:30", "agent_host": "192.168.162.166", "received": 95000.4, "sent": 164569.2}, {"ts": "2025-09-16T21:51:20+05:30", "agent_host": "192.168.162.166", "received": 97424.4, "sent": 169056.8}, {"ts": "2025-09-16T21:51:40+05:30", "agent_host": "192.168.162.166", "received": 115056.0, "sent": 187879.6}, {"ts": "2025-09-16T21:52:00+05:30", "agent_host": "192.168.162.166", "received": 93649.6, "sent": 143898.0}, {"ts": "2025-09-16T21:52:20+05:30", "agent_host": "192.168.162.166", "received": 99615.2, "sent": 167530.0}, {"ts": "2025-09-16T21:52:40+05:30", "agent_host": "192.168.162.166", "received": 123643.6, "sent": 182037.2}, {"ts": "2025-09-16T21:53:00+05:30", "agent_host": "192.168.162.166", "received": 99632.4, "sent": 163047.2}, {"ts": "2025-09-16T21:53:20+05:30", "agent_host": "192.168.162.166", "received": 103756.8, "sent": 171570.4}, {"ts": "2025-09-16T21:53:40+05:30", "agent_host": "192.168.162.166", "received": 113948.0, "sent": 172890.4}, {"ts": "2025-09-16T21:54:00+05:30", "agent_host": "192.168.162.166", "received": 106115.6, "sent": 170338.0}, {"ts": "2025-09-16T21:54:20+05:30", "agent_host": "192.168.162.166", "received": 98467.2, "sent": 167998.0}, {"ts": "2025-09-16T21:54:40+05:30", "agent_host": "192.168.162.166", "received": 102712.4, "sent": 160254.0}, {"ts": "2025-09-16T21:55:00+05:30", "agent_host": "192.168.162.166", "received": 103336.4, "sent": 166012.8}, {"ts": "2025-09-16T21:55:20+05:30", "agent_host": "192.168.162.166", "received": 99352.4, "sent": 170315.6}, {"ts": "2025-09-16T21:55:40+05:30", "agent_host": "192.168.162.166", "received": 105926.8, "sent": 165586.4}, {"ts": "2025-09-16T21:56:00+05:30", "agent_host": "192.168.162.166", "received": 109893.2, "sent": 174040.4}, {"ts": "2025-09-16T21:56:20+05:30", "agent_host": "192.168.162.166", "received": 98751.2, "sent": 166359.2}, {"ts": "2025-09-16T21:56:40+05:30", "agent_host": "192.168.162.166", "received": 108560.0, "sent": 170676.4}, {"ts": "2025-09-16T21:57:00+05:30", "agent_host": "192.168.162.166", "received": 103992.8, "sent": 169855.6}, {"ts": "2025-09-16T21:57:20+05:30", "agent_host": "192.168.162.166", "received": 99266.4, "sent": 169264.8}, {"ts": "2025-09-16T21:57:40+05:30", "agent_host": "192.168.162.166", "received": 101710.8, "sent": 165372.0}, {"ts": "2025-09-16T21:58:00+05:30", "agent_host": "192.168.162.166", "received": 98238.0, "sent": 165389.6}, {"ts": "2025-09-16T21:58:20+05:30", "agent_host": "192.168.162.166", "received": 98717.6, "sent": 171791.2}, {"ts": "2025-09-16T21:58:40+05:30", "agent_host": "192.168.162.166", "received": 101484.0, "sent": 165572.8}, {"ts": "2025-09-16T21:59:00+05:30", "agent_host": "192.168.162.166", "received": 101038.0, "sent": 166281.2}, {"ts": "2025-09-16T21:59:20+05:30", "agent_host": "192.168.162.166", "received": 98927.6, "sent": 170888.4}, {"ts": "2025-09-16T21:59:40+05:30", "agent_host": "192.168.162.166", "received": 97826.0, "sent": 160820.0}, {"ts": "2025-09-16T22:00:00+05:30", "agent_host": "192.168.162.166", "received": 97644.0, "sent": 163872.0}, {"ts": "2025-09-16T22:00:20+05:30", "agent_host": "192.168.162.166", "received": 104373.6, "sent": 173820.4}, {"ts": "2025-09-16T22:00:40+05:30", "agent_host": "192.168.162.166", "received": 103466.8, "sent": 165838.8}, {"ts": "2025-09-16T22:01:00+05:30", "agent_host": "192.168.162.166", "received": 88117.6, "sent": 143194.0}, {"ts": "2025-09-16T22:01:20+05:30", "agent_host": "192.168.162.166", "received": 95806.0, "sent": 165404.0}, {"ts": "2025-09-16T22:01:40+05:30", "agent_host": "192.168.162.166", "received": 101075.2, "sent": 164183.2}, {"ts": "2025-09-16T22:02:00+05:30", "agent_host": "192.168.162.166", "received": 95609.6, "sent": 162740.4}, {"ts": "2025-09-16T22:02:20+05:30", "agent_host": "192.168.162.166", "received": 103104.4, "sent": 165737.2}, {"ts": "2025-09-16T22:02:40+05:30", "agent_host": "192.168.162.166", "received": 105338.0, "sent": 166964.8}, {"ts": "2025-09-16T22:03:00+05:30", "agent_host": "192.168.162.166", "received": 97265.6, "sent": 164679.6}, {"ts": "2025-09-16T22:03:20+05:30", "agent_host": "192.168.162.166", "received": 97139.2, "sent": 168340.0}, {"ts": "2025-09-16T22:03:40+05:30", "agent_host": "192.168.162.166", "received": 107914.0, "sent": 170430.0}, {"ts": "2025-09-16T22:04:00+05:30", "agent_host": "192.168.162.166", "received": 103910.0, "sent": 170524.4}, {"ts": "2025-09-16T22:04:20+05:30", "agent_host": "192.168.162.166", "received": 96339.2, "sent": 168624.4}, {"ts": "2025-09-16T22:04:40+05:30", "agent_host": "192.168.162.166", "received": 109838.4, "sent": 173715.6}]}}CPU usage:
[root@AN admin]# curl 'http://127.0.0.1:8000/device_metrics' \
-X POST \
-H 'Accept: application/json, text/plain, /' \
-H 'Content-Type: application/json' \
-H 'X-CSRFToken: n5zjKGbFQGrMaRdpaHCy1s934V0UmuXC' \
-b 'csrftoken= n5zjKGbFQGrMaRdpaHCy1s934V0UmuXC; hive_key=1; django_language=en; csrf_token= n5zjKGbFQGrMaRdpaHCy1s934V0UmuXC; current_user=array; hive_sess=0791dd8f-6db9-4721-ad0a-283195430502' \
--data-raw '{
"metric_name": "cpu_usage",
"agent_host": "192.168.162.166",
"interval": "20s",
"from": "now-15m",
"to": "now"
}'
{"status": 1, "data": {"status": 200, "message": "success", "data": [{"ts": "2025-09-16T22:05:00+05:30", "agent_host": "192.168.162.166", "cpu": 41.0}, {"ts": "2025-09-16T22:05:20+05:30", "agent_host": "192.168.162.166", "cpu": 9.5}, {"ts": "2025-09-16T22:05:40+05:30", "agent_host": "192.168.162.166", "cpu": 10.0}, {"ts": "2025-09-16T22:06:00+05:30", "agent_host": "192.168.162.166", "cpu": 9.5}, {"ts": "2025-09-16T22:06:20+05:30", "agent_host": "192.168.162.166", "cpu": 12.5}, {"ts": "2025-09-16T22:06:40+05:30", "agent_host": "192.168.162.166", "cpu": 9.0}, {"ts": "2025-09-16T22:07:00+05:30", "agent_host": "192.168.162.166", "cpu": 9.0}, {"ts": "2025-09-16T22:07:20+05:30", "agent_host": "192.168.162.166", "cpu": 8.5}, {"ts": "2025-09-16T22:07:40+05:30", "agent_host": "192.168.162.166", "cpu": 19.0}, {"ts": "2025-09-16T22:08:00+05:30", "agent_host": "192.168.162.166", "cpu": 9.5}, {"ts": "2025-09-16T22:08:20+05:30", "agent_host": "192.168.162.166", "cpu": 9.5}, {"ts": "2025-09-16T22:08:40+05:30", "agent_host": "192.168.162.166", "cpu": 9.5}, {"ts": "2025-09-16T22:09:00+05:30", "agent_host": "192.168.162.166", "cpu": 20.0}, {"ts": "2025-09-16T22:09:20+05:30", "agent_host": "192.168.162.166", "cpu": 9.0}, {"ts": "2025-09-16T22:09:40+05:30", "agent_host": "192.168.162.166", "cpu": 9.0}, {"ts": "2025-09-16T22:10:00+05:30", "agent_host": "192.168.162.166", "cpu": 11.0}, {"ts": "2025-09-16T22:10:20+05:30", "agent_host": "192.168.162.166", "cpu": 10.0}, {"ts": "2025-09-16T22:10:40+05:30", "agent_host": "192.168.162.166", "cpu": 9.0}, {"ts": "2025-09-16T22:11:00+05:30", "agent_host": "192.168.162.166", "cpu": 9.0}, {"ts": "2025-09-16T22:11:20+05:30", "agent_host": "192.168.162.166", "cpu": 25.5}, {"ts": "2025-09-16T22:11:40+05:30", "agent_host": "192.168.162.166", "cpu": 9.0}, {"ts": "2025-09-16T22:12:00+05:30", "agent_host": "192.168.162.166", "cpu": 9.5}, {"ts": "2025-09-16T22:12:20+05:30", "agent_host": "192.168.162.166", "cpu": 9.0}, {"ts": "2025-09-16T22:12:40+05:30", "agent_host": "192.168.162.166", "cpu": 14.0}, {"ts": "2025-09-16T22:13:00+05:30", "agent_host": "192.168.162.166", "cpu": 9.5}, {"ts": "2025-09-16T22:13:20+05:30", "agent_host": "192.168.162.166", "cpu": 9.5}, {"ts": "2025-09-16T22:13:40+05:30", "agent_host": "192.168.162.166", "cpu": 10.0}, {"ts": "2025-09-16T22:14:00+05:30", "agent_host": "192.168.162.166", "cpu": 25.0}, {"ts": "2025-09-16T22:14:20+05:30", "agent_host": "192.168.162.166", "cpu": 9.5}, {"ts": "2025-09-16T22:14:40+05:30", "agent_host": "192.168.162.166", "cpu": 9.0}, {"ts": "2025-09-16T22:15:00+05:30", "agent_host": "192.168.162.166", "cpu": 9.5}, {"ts": "2025-09-16T22:15:20+05:30", "agent_host": "192.168.162.166", "cpu": 13.5}, {"ts": "2025-09-16T22:15:40+05:30", "agent_host": "192.168.162.166", "cpu": 9.0}, {"ts": "2025-09-16T22:16:00+05:30", "agent_host": "192.168.162.166", "cpu": 9.0}, {"ts": "2025-09-16T22:16:20+05:30", "agent_host": "192.168.162.166", "cpu": 20.0}, {"ts": "2025-09-16T22:16:40+05:30", "agent_host": "192.168.162.166", "cpu": 9.5}, {"ts": "2025-09-16T22:17:00+05:30", "agent_host": "192.168.162.166", "cpu": 8.5}, {"ts": "2025-09-16T22:17:20+05:30", "agent_host": "192.168.162.166", "cpu": 9.5}, {"ts": "2025-09-16T22:17:40+05:30", "agent_host": "192.168.162.166", "cpu": 13.0}, {"ts": "2025-09-16T22:18:00+05:30", "agent_host": "192.168.162.166", "cpu": 11.0}, {"ts": "2025-09-16T22:18:20+05:30", "agent_host": "192.168.162.166", "cpu": 12.0}, {"ts": "2025-09-16T22:18:40+05:30", "agent_host": "192.168.162.166", "cpu": 10.0}, {"ts": "2025-09-16T22:19:00+05:30", "agent_host": "192.168.162.166", "cpu": 28.5}, {"ts": "2025-09-16T22:19:20+05:30", "agent_host": "192.168.162.166", "cpu": 12.5}, {"ts": "2025-09-16T22:19:40+05:30", "agent_host": "192.168.162.166", "cpu": 9.0}, {"ts": "2025-09-16T22:20:00+05:30", "agent_host": "192.168.162.166", "cpu": null}]}}Memory Usage:
[root@AN admin]# curl 'http://127.0.0.1:8000/device_metrics' \
-X POST \
-H 'Accept: application/json, text/plain, /' \
-H 'Content-Type: application/json' \
-H 'X-CSRFToken: TVrXDADGrLdE0PSpmoSsbQguMGcbzKko' \
-b 'csrftoken= TVrXDADGrLdE0PSpmoSsbQguMGcbzKko; hive_key=1; django_language=en; csrf_token= TVrXDADGrLdE0PSpmoSsbQguMGcbzKko; current_user=array; hive_sess=8b9c4da6-e063-48c6-9878-a1678e2dd36a' \
--data-raw '{
"metric_name": "memory_usage",
"agent_host": "192.168.162.166",
"interval": "20s",
"from": "now-15m",
"to": "now"
}'
{"status": 1, "data": {"status": 200, "message": "success", "data": [{"ts": "2025-09-16T22:17:00+05:30", "agent_host": "192.168.162.166", "memory_usage": 51.0, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:17:20+05:30", "agent_host": "192.168.162.166", "memory_usage": 51.0, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:17:40+05:30", "agent_host": "192.168.162.166", "memory_usage": 51.0, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:18:00+05:30", "agent_host": "192.168.162.166", "memory_usage": 51.0, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:18:20+05:30", "agent_host": "192.168.162.166", "memory_usage": 51.0, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:18:40+05:30", "agent_host": "192.168.162.166", "memory_usage": 51.0, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:19:00+05:30", "agent_host": "192.168.162.166", "memory_usage": 51.0, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:19:20+05:30", "agent_host": "192.168.162.166", "memory_usage": 51.0, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:19:40+05:30", "agent_host": "192.168.162.166", "memory_usage": 51.0, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:20:00+05:30", "agent_host": "192.168.162.166", "memory_usage": 51.0, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:20:20+05:30", "agent_host": "192.168.162.166", "memory_usage": 51.0, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:20:40+05:30", "agent_host": "192.168.162.166", "memory_usage": 51.0, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:21:00+05:30", "agent_host": "192.168.162.166", "memory_usage": 51.0, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:21:20+05:30", "agent_host": "192.168.162.166", "memory_usage": 51.0, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:21:40+05:30", "agent_host": "192.168.162.166", "memory_usage": 51.0, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:22:00+05:30", "agent_host": "192.168.162.166", "memory_usage": 51.0, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:22:20+05:30", "agent_host": "192.168.162.166", "memory_usage": 51.0, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:22:40+05:30", "agent_host": "192.168.162.166", "memory_usage": 51.0, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:23:00+05:30", "agent_host": "192.168.162.166", "memory_usage": 51.0, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:23:20+05:30", "agent_host": "192.168.162.166", "memory_usage": 51.0, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:23:40+05:30", "agent_host": "192.168.162.166", "memory_usage": 51.0, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:24:00+05:30", "agent_host": "192.168.162.166", "memory_usage": 51.0, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:24:20+05:30", "agent_host": "192.168.162.166", "memory_usage": 51.5, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:24:40+05:30", "agent_host": "192.168.162.166", "memory_usage": 52.0, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:25:00+05:30", "agent_host": "192.168.162.166", "memory_usage": 52.0, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:25:20+05:30", "agent_host": "192.168.162.166", "memory_usage": 51.0, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:25:40+05:30", "agent_host": "192.168.162.166", "memory_usage": 51.0, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:26:00+05:30", "agent_host": "192.168.162.166", "memory_usage": 51.0, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:26:20+05:30", "agent_host": "192.168.162.166", "memory_usage": 51.0, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:26:40+05:30", "agent_host": "192.168.162.166", "memory_usage": 51.0, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:27:00+05:30", "agent_host": "192.168.162.166", "memory_usage": 52.0, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:27:20+05:30", "agent_host": "192.168.162.166", "memory_usage": 52.0, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:27:40+05:30", "agent_host": "192.168.162.166", "memory_usage": 52.0, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:28:00+05:30", "agent_host": "192.168.162.166", "memory_usage": 52.0, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:28:20+05:30", "agent_host": "192.168.162.166", "memory_usage": 52.0, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:28:40+05:30", "agent_host": "192.168.162.166", "memory_usage": 51.0, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:29:00+05:30", "agent_host": "192.168.162.166", "memory_usage": 51.0, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:29:20+05:30", "agent_host": "192.168.162.166", "memory_usage": 51.5, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:29:40+05:30", "agent_host": "192.168.162.166", "memory_usage": 52.0, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:30:00+05:30", "agent_host": "192.168.162.166", "memory_usage": 52.0, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:30:20+05:30", "agent_host": "192.168.162.166", "memory_usage": 51.0, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:30:40+05:30", "agent_host": "192.168.162.166", "memory_usage": 51.0, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:31:00+05:30", "agent_host": "192.168.162.166", "memory_usage": 51.0, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:31:20+05:30", "agent_host": "192.168.162.166", "memory_usage": 51.0, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:31:40+05:30", "agent_host": "192.168.162.166", "memory_usage": 51.0, "network_mem_usage": 3.0}, {"ts": "2025-09-16T22:32:00+05:30", "agent_host": "192.168.162.166", "memory_usage": 52.0, "network_mem_usage": 3.0}]}}Disk Usage:
[root@AN admin]# curl 'http://127.0.0.1:8000/device_metrics' \
-X POST \
-H 'Accept: application/json, text/plain, /' \
-H 'Content-Type: application/json' \
-H 'X-CSRFToken: pFmYx8VFzcCEOpQaqJJht0QPzHLiCqFI' \
-b 'csrftoken= pFmYx8VFzcCEOpQaqJJht0QPzHLiCqFI; hive_key=1; django_language=en; csrf_token= pFmYx8VFzcCEOpQaqJJht0QPzHLiCqFI; current_user=array; hive_sess=61f9c14f-30b7-4798-a95b-c96067fb207e' \
--data-raw '{
"metric_name": "disk_usage",
"agent_host": "192.168.162.166",
"interval": "20s",
"from": "now-15m",
"to": "now"
}'
{"status": 1, "data": {"status": 200, "message": "success", "data": [{"ts": "2025-09-16T22:23:40+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.0924710585325076"}, {"ts": "2025-09-16T22:24:00+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.0944233327883968"}, {"ts": "2025-09-16T22:24:20+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.0945627778536161"}, {"ts": "2025-09-16T22:24:40+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.0940389941036313"}, {"ts": "2025-09-16T22:25:00+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.0972681704779960"}, {"ts": "2025-09-16T22:25:20+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.0964422630132943"}, {"ts": "2025-09-16T22:25:40+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.0968290541772795"}, {"ts": "2025-09-16T22:26:00+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.0954863724926121"}, {"ts": "2025-09-16T22:26:20+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.0859042095989877"}, {"ts": "2025-09-16T22:26:40+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.0981312850308771"}, {"ts": "2025-09-16T22:27:00+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.1003525550628257"}, {"ts": "2025-09-16T22:27:20+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.0975623589515479"}, {"ts": "2025-09-16T22:27:40+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.1035595272047540"}, {"ts": "2025-09-16T22:28:00+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.0997892072851688"}, {"ts": "2025-09-16T22:28:20+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.1003932481853400"}, {"ts": "2025-09-16T22:28:40+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.0990084423489533"}, {"ts": "2025-09-16T22:29:00+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.1044082472313754"}, {"ts": "2025-09-16T22:29:20+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.1066684389750275"}, {"ts": "2025-09-16T22:29:40+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.1028194628255102"}, {"ts": "2025-09-16T22:30:00+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.1065171248094259"}, {"ts": "2025-09-16T22:30:20+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.1045154861201857"}, {"ts": "2025-09-16T22:30:40+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.1021489960227632"}, {"ts": "2025-09-16T22:31:00+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.1037902637095917"}, {"ts": "2025-09-16T22:31:20+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.1052272727671796"}, {"ts": "2025-09-16T22:31:40+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.1071760322795397"}, {"ts": "2025-09-16T22:32:00+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.1049589610381219"}, {"ts": "2025-09-16T22:32:20+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.1053382344352782"}, {"ts": "2025-09-16T22:32:40+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.1090436501547025"}, {"ts": "2025-09-16T22:33:00+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.1089205098537900"}, {"ts": "2025-09-16T22:33:20+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.1093589737241550"}, {"ts": "2025-09-16T22:33:40+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.1080297700878050"}, {"ts": "2025-09-16T22:34:00+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.1132144547172909"}, {"ts": "2025-09-16T22:34:20+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.1094026895068245"}, {"ts": "2025-09-16T22:34:40+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.1098563659144622"}, {"ts": "2025-09-16T22:35:00+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.1295326528912992"}, {"ts": "2025-09-16T22:35:20+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.1111969921969913"}, {"ts": "2025-09-16T22:35:40+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.1123885569554784"}, {"ts": "2025-09-16T22:36:00+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.1120432770012883"}, {"ts": "2025-09-16T22:36:20+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.1121356332276531"}, {"ts": "2025-09-16T22:36:40+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.1137374310667098"}, {"ts": "2025-09-16T22:37:00+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.1127786971976091"}, {"ts": "2025-09-16T22:37:20+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.1145369237491692"}, {"ts": "2025-09-16T22:37:40+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.1180644432898803"}, {"ts": "2025-09-16T22:38:00+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.1168618598819342"}, {"ts": "2025-09-16T22:38:20+05:30", "agent_host": "192.168.162.166", "disk_usage": "41.1174717583668238"}, {"ts": "2025-09-16T22:38:40+05:30", "agent_host": "192.168.162.166", "disk_usage": "0"}]}}Network Throughput:
[root@AN admin]# curl 'http://127.0.0.1:8000/device_metrics' \
-X POST \
-H 'Accept: application/json, text/plain, /' \
-H 'Content-Type: application/json' \
-H 'X-CSRFToken: 3QnOaKpA3LHtvwBIv4UV2mRAaVkXPHmt' \
-b 'csrftoken= 3QnOaKpA3LHtvwBIv4UV2mRAaVkXPHmt; hive_key=1; django_language=en; csrf_token= 3QnOaKpA3LHtvwBIv4UV2mRAaVkXPHmt; current_user=array; hive_sess=86294362-4391-4ea4-928b-c798007fd28e' \
--data-raw '{
"metric_name": "network_throughput",
"agent_host": "192.168.162.166",
"interval": "20s",
"from": "now-15m",
"to": "now"
}'
{"status": 1, "data": {"status": 200, "message": "success", "data": [{"ts": "2025-09-16T22:46:00+05:30", "agent_host": "192.168.162.166", "sent": "0", "received": "0"}, {"ts": "2025-09-16T22:46:20+05:30", "agent_host": "192.168.162.166", "sent": "0", "received": "0"}, {"ts": "2025-09-16T22:46:40+05:30", "agent_host": "192.168.162.166", "sent": "163598.000000000000", "received": "101850.000000000000"}, {"ts": "2025-09-16T22:47:00+05:30", "agent_host": "192.168.162.166", "sent": "169181.600000000000", "received": "97800.800000000000"}, {"ts": "2025-09-16T22:47:20+05:30", "agent_host": "192.168.162.166", "sent": "169810.000000000000", "received": "97549.200000000000"}, {"ts": "2025-09-16T22:47:40+05:30", "agent_host": "192.168.162.166", "sent": "169580.000000000000", "received": "105846.400000000000"}, {"ts": "2025-09-16T22:48:00+05:30", "agent_host": "192.168.162.166", "sent": "161509.200000000000", "received": "98298.800000000000"}, {"ts": "2025-09-16T22:48:20+05:30", "agent_host": "192.168.162.166", "sent": "170688.400000000000", "received": "98545.200000000000"}, {"ts": "2025-09-16T22:48:40+05:30", "agent_host": "192.168.162.166", "sent": "166562.800000000000", "received": "103091.600000000000"}, {"ts": "2025-09-16T22:49:00+05:30", "agent_host": "192.168.162.166", "sent": "144634.400000000000", "received": "88021.200000000000"}, {"ts": "2025-09-16T22:49:20+05:30", "agent_host": "192.168.162.166", "sent": "166872.400000000000", "received": "95923.600000000000"}, {"ts": "2025-09-16T22:49:40+05:30", "agent_host": "192.168.162.166", "sent": "165227.600000000000", "received": "102834.000000000000"}, {"ts": "2025-09-16T22:50:00+05:30", "agent_host": "192.168.162.166", "sent": "173503.600000000000", "received": "104924.400000000000"}, {"ts": "2025-09-16T22:50:20+05:30", "agent_host": "192.168.162.166", "sent": "167105.600000000000", "received": "97010.000000000000"}, {"ts": "2025-09-16T22:50:40+05:30", "agent_host": "192.168.162.166", "sent": "185820.000000000000", "received": "110928.000000000000"}, {"ts": "2025-09-16T22:51:00+05:30", "agent_host": "192.168.162.166", "sent": "148312.800000000000", "received": "92321.200000000000"}, {"ts": "2025-09-16T22:51:20+05:30", "agent_host": "192.168.162.166", "sent": "165043.600000000000", "received": "94681.200000000000"}, {"ts": "2025-09-16T22:51:40+05:30", "agent_host": "192.168.162.166", "sent": "203196.000000000000", "received": "122671.600000000000"}, {"ts": "2025-09-16T22:52:00+05:30", "agent_host": "192.168.162.166", "sent": "129213.600000000000", "received": "80013.600000000000"}, {"ts": "2025-09-16T22:52:20+05:30", "agent_host": "192.168.162.166", "sent": "167793.200000000000", "received": "95526.000000000000"}, {"ts": "2025-09-16T22:52:40+05:30", "agent_host": "192.168.162.166", "sent": "175755.600000000000", "received": "113865.600000000000"}, {"ts": "2025-09-16T22:53:00+05:30", "agent_host": "192.168.162.166", "sent": "161908.800000000000", "received": "101879.600000000000"}, {"ts": "2025-09-16T22:53:20+05:30", "agent_host": "192.168.162.166", "sent": "171947.200000000000", "received": "103191.200000000000"}, {"ts": "2025-09-16T22:53:40+05:30", "agent_host": "192.168.162.166", "sent": "167996.400000000000", "received": "106099.200000000000"}, {"ts": "2025-09-16T22:54:00+05:30", "agent_host": "192.168.162.166", "sent": "165077.600000000000", "received": "98151.200000000000"}, {"ts": "2025-09-16T22:54:20+05:30", "agent_host": "192.168.162.166", "sent": "170763.200000000000", "received": "99515.200000000000"}, {"ts": "2025-09-16T22:54:40+05:30", "agent_host": "192.168.162.166", "sent": "165209.600000000000", "received": "101987.600000000000"}, {"ts": "2025-09-16T22:55:00+05:30", "agent_host": "192.168.162.166", "sent": "162385.200000000000", "received": "95621.600000000000"}, {"ts": "2025-09-16T22:55:20+05:30", "agent_host": "192.168.162.166", "sent": "171289.200000000000", "received": "99515.600000000000"}, {"ts": "2025-09-16T22:55:40+05:30", "agent_host": "192.168.162.166", "sent": "163100.800000000000", "received": "101378.800000000000"}, {"ts": "2025-09-16T22:56:00+05:30", "agent_host": "192.168.162.166", "sent": "159924.000000000000", "received": "94302.400000000000"}, {"ts": "2025-09-16T22:56:20+05:30", "agent_host": "192.168.162.166", "sent": "166148.800000000000", "received": "93835.200000000000"}, {"ts": "2025-09-16T22:56:40+05:30", "agent_host": "192.168.162.166", "sent": "164429.200000000000", "received": "102876.400000000000"}, {"ts": "2025-09-16T22:57:00+05:30", "agent_host": "192.168.162.166", "sent": "0", "received": "0"}, {"ts": "2025-09-16T22:57:20+05:30", "agent_host": "192.168.162.166", "sent": "0", "received": "0"}, {"ts": "2025-09-16T22:57:40+05:30", "agent_host": "192.168.162.166", "sent": "128720.800000000000", "received": "145779.600000000000"}, {"ts": "2025-09-16T22:58:00+05:30", "agent_host": "192.168.162.166", "sent": "159923.200000000000", "received": "105053.200000000000"}, {"ts": "2025-09-16T22:58:20+05:30", "agent_host": "192.168.162.166", "sent": "167022.400000000000", "received": "99059.200000000000"}, {"ts": "2025-09-16T22:58:40+05:30", "agent_host": "192.168.162.166", "sent": "165602.400000000000", "received": "107748.400000000000"}, {"ts": "2025-09-16T22:59:00+05:30", "agent_host": "192.168.162.166", "sent": "165563.600000000000", "received": "104714.000000000000"}, {"ts": "2025-09-16T22:59:20+05:30", "agent_host": "192.168.162.166", "sent": "167643.200000000000", "received": "99029.200000000000"}, {"ts": "2025-09-16T22:59:40+05:30", "agent_host": "192.168.162.166", "sent": "168316.400000000000", "received": "108635.200000000000"}, {"ts": "2025-09-16T23:00:00+05:30", "agent_host": "192.168.162.166", "sent": "160410.400000000000", "received": "99978.400000000000"}, {"ts": "2025-09-16T23:00:20+05:30", "agent_host": "192.168.162.166", "sent": "167614.800000000000", "received": "100169.200000000000"}, {"ts": "2025-09-16T23:00:40+05:30", "agent_host": "192.168.162.166", "sent": "168205.200000000000", "received": "108151.200000000000"}, {"ts": "2025-09-16T23:01:00+05:30", "agent_host": "192.168.162.166", "sent": "165368.000000000000", "received": "103842.800000000000"}]}}Open SSL Connections:
[root@AN admin]# curl 'http://127.0.0.1:8000/device_metrics' \
-X POST \
-H 'Accept: application/json, text/plain, /' \
-H 'Content-Type: application/json' \
-H 'X-CSRFToken: yq920KL4gAgLSWHZA9KJ9qfLovawDF3N' \
-b 'csrftoken= yq920KL4gAgLSWHZA9KJ9qfLovawDF3N; hive_key=1; django_language=en; csrf_token= yq920KL4gAgLSWHZA9KJ9qfLovawDF3N; current_user=array; hive_sess=00a4a66f-d880-44f0-bc6d-5ed0dceefa3b' \
--data-raw '{
"metric_name": "ssl_connections",
"agent_host": "192.168.162.166",
"interval": "20s",
"from": "now-15m",
"to": "now"
}'
{"status": 1, "data": {"status": 200, "message": "success", "data": [{"ts": "2025-09-16T22:56:20+05:30", "agent_host": "192.168.162.166", "ssl_connection": "0"}, {"ts": "2025-09-16T22:56:40+05:30", "agent_host": "192.168.162.166", "ssl_connection": "0"}, {"ts": "2025-09-16T22:57:00+05:30", "agent_host": "192.168.162.166", "ssl_connection": null}, {"ts": "2025-09-16T22:57:20+05:30", "agent_host": "192.168.162.166", "ssl_connection": "0"}, {"ts": "2025-09-16T22:57:40+05:30", "agent_host": "192.168.162.166", "ssl_connection": "0"}, {"ts": "2025-09-16T22:58:00+05:30", "agent_host": "192.168.162.166", "ssl_connection": "0"}, {"ts": "2025-09-16T22:58:20+05:30", "agent_host": "192.168.162.166", "ssl_connection": "0"}, {"ts": "2025-09-16T22:58:40+05:30", "agent_host": "192.168.162.166", "ssl_connection": "0"}, {"ts": "2025-09-16T22:59:00+05:30", "agent_host": "192.168.162.166", "ssl_connection": "0"}, {"ts": "2025-09-16T22:59:20+05:30", "agent_host": "192.168.162.166", "ssl_connection": "1"}, {"ts": "2025-09-16T22:59:40+05:30", "agent_host": "192.168.162.166", "ssl_connection": "0"}, {"ts": "2025-09-16T23:00:00+05:30", "agent_host": "192.168.162.166", "ssl_connection": "0"}, {"ts": "2025-09-16T23:00:20+05:30", "agent_host": "192.168.162.166", "ssl_connection": "0"}, {"ts": "2025-09-16T23:00:40+05:30", "agent_host": "192.168.162.166", "ssl_connection": "0"}, {"ts": "2025-09-16T23:01:00+05:30", "agent_host": "192.168.162.166", "ssl_connection": "0"}, {"ts": "2025-09-16T23:01:20+05:30", "agent_host": "192.168.162.166", "ssl_connection": "0"}, {"ts": "2025-09-16T23:01:40+05:30", "agent_host": "192.168.162.166", "ssl_connection": "0"}, {"ts": "2025-09-16T23:02:00+05:30", "agent_host": "192.168.162.166", "ssl_connection": "1"}, {"ts": "2025-09-16T23:02:20+05:30", "agent_host": "192.168.162.166", "ssl_connection": "0"}, {"ts": "2025-09-16T23:02:40+05:30", "agent_host": "192.168.162.166", "ssl_connection": "0"}, {"ts": "2025-09-16T23:03:00+05:30", "agent_host": "192.168.162.166", "ssl_connection": "0"}, {"ts": "2025-09-16T23:03:20+05:30", "agent_host": "192.168.162.166", "ssl_connection": "0"}, {"ts": "2025-09-16T23:03:40+05:30", "agent_host": "192.168.162.166", "ssl_connection": "0"}, {"ts": "2025-09-16T23:04:00+05:30", "agent_host": "192.168.162.166", "ssl_connection": "0"}, {"ts": "2025-09-16T23:04:20+05:30", "agent_host": "192.168.162.166", "ssl_connection": "0"}, {"ts": "2025-09-16T23:04:40+05:30", "agent_host": "192.168.162.166", "ssl_connection": "0"}, {"ts": "2025-09-16T23:05:00+05:30", "agent_host": "192.168.162.166", "ssl_connection": "0"}, {"ts": "2025-09-16T23:05:20+05:30", "agent_host": "192.168.162.166", "ssl_connection": "0"}, {"ts": "2025-09-16T23:05:40+05:30", "agent_host": "192.168.162.166", "ssl_connection": "1"}, {"ts": "2025-09-16T23:06:00+05:30", "agent_host": "192.168.162.166", "ssl_connection": "0"}, {"ts": "2025-09-16T23:06:20+05:30", "agent_host": "192.168.162.166", "ssl_connection": "0"}, {"ts": "2025-09-16T23:06:40+05:30", "agent_host": "192.168.162.166", "ssl_connection": "0"}, {"ts": "2025-09-16T23:07:00+05:30", "agent_host": "192.168.162.166", "ssl_connection": "0"}, {"ts": "2025-09-16T23:07:20+05:30", "agent_host": "192.168.162.166", "ssl_connection": "0"}, {"ts": "2025-09-16T23:07:40+05:30", "agent_host": "192.168.162.166", "ssl_connection": "0"}, {"ts": "2025-09-16T23:08:00+05:30", "agent_host": "192.168.162.166", "ssl_connection": "1"}, {"ts": "2025-09-16T23:08:20+05:30", "agent_host": "192.168.162.166", "ssl_connection": "1"}, {"ts": "2025-09-16T23:08:40+05:30", "agent_host": "192.168.162.166", "ssl_connection": "0"}, {"ts": "2025-09-16T23:09:00+05:30", "agent_host": "192.168.162.166", "ssl_connection": "0"}, {"ts": "2025-09-16T23:09:20+05:30", "agent_host": "192.168.162.166", "ssl_connection": "0"}, {"ts": "2025-09-16T23:09:40+05:30", "agent_host": "192.168.162.166", "ssl_connection": "0"}, {"ts": "2025-09-16T23:10:00+05:30", "agent_host": "192.168.162.166", "ssl_connection": "0"}, {"ts": "2025-09-16T23:10:20+05:30", "agent_host": "192.168.162.166", "ssl_connection": "0"}, {"ts": "2025-09-16T23:10:40+05:30", "agent_host": "192.168.162.166", "ssl_connection": "0"}, {"ts": "2025-09-16T23:11:00+05:30", "agent_host": "192.168.162.166", "ssl_connection": "0"}, {"ts": "2025-09-16T23:11:20+05:30", "agent_host": "192.168.162.166", "ssl_connection": null}]}}Connections Per sec:
[root@AN admin]# curl 'http://127.0.0.1:8000/device_metrics' \
-X POST \
-H 'Accept: application/json, text/plain, /' \
-H 'Content-Type: application/json' \
-H 'X-CSRFToken: cmii8aORHWtHdEK7Ap3pWb9W6yP17GUc' \
-b 'csrftoken= cmii8aORHWtHdEK7Ap3pWb9W6yP17GUc; hive_key=1; django_language=en; csrf_token= cmii8aORHWtHdEK7Ap3pWb9W6yP17GUc; current_user=array; hive_sess=478a30b0-e87e-4e61-8f7d-88dc0408205d' \
--data-raw '{
"metric_name": "connections",
"agent_host": "192.168.162.166",
"interval": "20s",
"from": "now-15m",
"to": "now"
}'
{"status": 1, "data": {"status": 200, "message": "success", "data": [{"ts": "2025-09-16T23:01:20+05:30", "agent_host": "192.168.162.166", "connection": "5.0000000000000000"}, {"ts": "2025-09-16T23:01:40+05:30", "agent_host": "192.168.162.166", "connection": "7.0000000000000000"}, {"ts": "2025-09-16T23:02:00+05:30", "agent_host": "192.168.162.166", "connection": "5.0000000000000000"}, {"ts": "2025-09-16T23:02:20+05:30", "agent_host": "192.168.162.166", "connection": "5.0000000000000000"}, {"ts": "2025-09-16T23:02:40+05:30", "agent_host": "192.168.162.166", "connection": "5.5000000000000000"}, {"ts": "2025-09-16T23:03:00+05:30", "agent_host": "192.168.162.166", "connection": "5.5000000000000000"}, {"ts": "2025-09-16T23:03:20+05:30", "agent_host": "192.168.162.166", "connection": "4.5000000000000000"}, {"ts": "2025-09-16T23:03:40+05:30", "agent_host": "192.168.162.166", "connection": "6.0000000000000000"}, {"ts": "2025-09-16T23:04:00+05:30", "agent_host": "192.168.162.166", "connection": "5.5000000000000000"}, {"ts": "2025-09-16T23:04:20+05:30", "agent_host": "192.168.162.166", "connection": "5.0000000000000000"}, {"ts": "2025-09-16T23:04:40+05:30", "agent_host": "192.168.162.166", "connection": "5.5000000000000000"}, {"ts": "2025-09-16T23:05:00+05:30", "agent_host": "192.168.162.166", "connection": "5.5000000000000000"}, {"ts": "2025-09-16T23:05:20+05:30", "agent_host": "192.168.162.166", "connection": "6.5000000000000000"}, {"ts": "2025-09-16T23:05:40+05:30", "agent_host": "192.168.162.166", "connection": "5.5000000000000000"}, {"ts": "2025-09-16T23:06:00+05:30", "agent_host": "192.168.162.166", "connection": "5.5000000000000000"}, {"ts": "2025-09-16T23:06:20+05:30", "agent_host": "192.168.162.166", "connection": "6.0000000000000000"}, {"ts": "2025-09-16T23:06:40+05:30", "agent_host": "192.168.162.166", "connection": "6.5000000000000000"}, {"ts": "2025-09-16T23:07:00+05:30", "agent_host": "192.168.162.166", "connection": "5.0000000000000000"}, {"ts": "2025-09-16T23:07:20+05:30", "agent_host": "192.168.162.166", "connection": "6.5000000000000000"}, {"ts": "2025-09-16T23:07:40+05:30", "agent_host": "192.168.162.166", "connection": "7.0000000000000000"}, {"ts": "2025-09-16T23:08:00+05:30", "agent_host": "192.168.162.166", "connection": "6.0000000000000000"}, {"ts": "2025-09-16T23:08:20+05:30", "agent_host": "192.168.162.166", "connection": "6.0000000000000000"}, {"ts": "2025-09-16T23:08:40+05:30", "agent_host": "192.168.162.166", "connection": "5.5000000000000000"}, {"ts": "2025-09-16T23:09:00+05:30", "agent_host": "192.168.162.166", "connection": "6.5000000000000000"}, {"ts": "2025-09-16T23:09:20+05:30", "agent_host": "192.168.162.166", "connection": "5.0000000000000000"}, {"ts": "2025-09-16T23:09:40+05:30", "agent_host": "192.168.162.166", "connection": "5.5000000000000000"}, {"ts": "2025-09-16T23:10:00+05:30", "agent_host": "192.168.162.166", "connection": "6.0000000000000000"}, {"ts": "2025-09-16T23:10:20+05:30", "agent_host": "192.168.162.166", "connection": "5.0000000000000000"}, {"ts": "2025-09-16T23:10:40+05:30", "agent_host": "192.168.162.166", "connection": "5.0000000000000000"}, {"ts": "2025-09-16T23:11:00+05:30", "agent_host": "192.168.162.166", "connection": "6.0000000000000000"}, {"ts": "2025-09-16T23:11:20+05:30", "agent_host": "192.168.162.166", "connection": "6.5000000000000000"}, {"ts": "2025-09-16T23:11:40+05:30", "agent_host": "192.168.162.166", "connection": "5.5000000000000000"}, {"ts": "2025-09-16T23:12:00+05:30", "agent_host": "192.168.162.166", "connection": "6.0000000000000000"}, {"ts": "2025-09-16T23:12:20+05:30", "agent_host": "192.168.162.166", "connection": "5.0000000000000000"}, {"ts": "2025-09-16T23:12:40+05:30", "agent_host": "192.168.162.166", "connection": "6.5000000000000000"}, {"ts": "2025-09-16T23:13:00+05:30", "agent_host": "192.168.162.166", "connection": "5.5000000000000000"}, {"ts": "2025-09-16T23:13:20+05:30", "agent_host": "192.168.162.166", "connection": "5.0000000000000000"}, {"ts": "2025-09-16T23:13:40+05:30", "agent_host": "192.168.162.166", "connection": "5.5000000000000000"}, {"ts": "2025-09-16T23:14:00+05:30", "agent_host": "192.168.162.166", "connection": "5.5000000000000000"}, {"ts": "2025-09-16T23:14:20+05:30", "agent_host": "192.168.162.166", "connection": "5.5000000000000000"}, {"ts": "2025-09-16T23:14:40+05:30", "agent_host": "192.168.162.166", "connection": "5.5000000000000000"}, {"ts": "2025-09-16T23:15:00+05:30", "agent_host": "192.168.162.166", "connection": "5.5000000000000000"}, {"ts": "2025-09-16T23:15:20+05:30", "agent_host": "192.168.162.166", "connection": "6.0000000000000000"}, {"ts": "2025-09-16T23:15:40+05:30", "agent_host": "192.168.162.166", "connection": "5.0000000000000000"}, {"ts": "2025-09-16T23:16:00+05:30", "agent_host": "192.168.162.166", "connection": "5.0000000000000000"}, {"ts": "2025-09-16T23:16:20+05:30", "agent_host": "192.168.162.166", "connection": null}]}}Requests Per Sec:
[root@AN admin]# curl 'http://127.0.0.1:8000/device_metrics' \
-X POST \
-H 'Accept: application/json, text/plain, /' \
-H 'Content-Type: application/json' \
-H 'X-CSRFToken: mPaMoO3C0QB8qPxmxKuI1uBW8ICL5oRS' \
-b 'csrftoken= mPaMoO3C0QB8qPxmxKuI1uBW8ICL5oRS; hive_key=1; django_language=en; csrf_token= mPaMoO3C0QB8qPxmxKuI1uBW8ICL5oRS; current_user=array; hive_sess=63eb5427-8202-4104-bc7b-d7b53b199e86' \
--data-raw '{
"metric_name": "requests",
"agent_host": "192.168.162.166",
"interval": "20s",
"from": "now-15m",
"to": "now"
}'
{"status": 1, "data": {"status": 200, "message": "success", "data": [{"ts": "2025-09-16T23:06:00+05:30", "agent_host": "192.168.162.166", "requests": "6.0000000000000000"}, {"ts": "2025-09-16T23:06:20+05:30", "agent_host": "192.168.162.166", "requests": "6.0000000000000000"}, {"ts": "2025-09-16T23:06:40+05:30", "agent_host": "192.168.162.166", "requests": "6.5000000000000000"}, {"ts": "2025-09-16T23:07:00+05:30", "agent_host": "192.168.162.166", "requests": "5.0000000000000000"}, {"ts": "2025-09-16T23:07:20+05:30", "agent_host": "192.168.162.166", "requests": "5.5000000000000000"}, {"ts": "2025-09-16T23:07:40+05:30", "agent_host": "192.168.162.166", "requests": "6.0000000000000000"}, {"ts": "2025-09-16T23:08:00+05:30", "agent_host": "192.168.162.166", "requests": "6.5000000000000000"}, {"ts": "2025-09-16T23:08:20+05:30", "agent_host": "192.168.162.166", "requests": "5.5000000000000000"}, {"ts": "2025-09-16T23:08:40+05:30", "agent_host": "192.168.162.166", "requests": "6.0000000000000000"}, {"ts": "2025-09-16T23:09:00+05:30", "agent_host": "192.168.162.166", "requests": "5.5000000000000000"}, {"ts": "2025-09-16T23:09:20+05:30", "agent_host": "192.168.162.166", "requests": "5.0000000000000000"}, {"ts": "2025-09-16T23:09:40+05:30", "agent_host": "192.168.162.166", "requests": "5.5000000000000000"}, {"ts": "2025-09-16T23:10:00+05:30", "agent_host": "192.168.162.166", "requests": "5.0000000000000000"}, {"ts": "2025-09-16T23:10:20+05:30", "agent_host": "192.168.162.166", "requests": "5.5000000000000000"}, {"ts": "2025-09-16T23:10:40+05:30", "agent_host": "192.168.162.166", "requests": "5.0000000000000000"}, {"ts": "2025-09-16T23:11:00+05:30", "agent_host": "192.168.162.166", "requests": "6.0000000000000000"}, {"ts": "2025-09-16T23:11:20+05:30", "agent_host": "192.168.162.166", "requests": "5.5000000000000000"}, {"ts": "2025-09-16T23:11:40+05:30", "agent_host": "192.168.162.166", "requests": "5.5000000000000000"}, {"ts": "2025-09-16T23:12:00+05:30", "agent_host": "192.168.162.166", "requests": "5.0000000000000000"}, {"ts": "2025-09-16T23:12:20+05:30", "agent_host": "192.168.162.166", "requests": "5.5000000000000000"}, {"ts": "2025-09-16T23:12:40+05:30", "agent_host": "192.168.162.166", "requests": "6.0000000000000000"}, {"ts": "2025-09-16T23:13:00+05:30", "agent_host": "192.168.162.166", "requests": "5.5000000000000000"}, {"ts": "2025-09-16T23:13:20+05:30", "agent_host": "192.168.162.166", "requests": "5.0000000000000000"}, {"ts": "2025-09-16T23:13:40+05:30", "agent_host": "192.168.162.166", "requests": "5.5000000000000000"}, {"ts": "2025-09-16T23:14:00+05:30", "agent_host": "192.168.162.166", "requests": "5.0000000000000000"}, {"ts": "2025-09-16T23:14:20+05:30", "agent_host": "192.168.162.166", "requests": "5.5000000000000000"}, {"ts": "2025-09-16T23:14:40+05:30", "agent_host": "192.168.162.166", "requests": "5.5000000000000000"}, {"ts": "2025-09-16T23:15:00+05:30", "agent_host": "192.168.162.166", "requests": "5.5000000000000000"}, {"ts": "2025-09-16T23:15:20+05:30", "agent_host": "192.168.162.166", "requests": "6.0000000000000000"}, {"ts": "2025-09-16T23:15:40+05:30", "agent_host": "192.168.162.166", "requests": "5.0000000000000000"}, {"ts": "2025-09-16T23:16:00+05:30", "agent_host": "192.168.162.166", "requests": "5.5000000000000000"}, {"ts": "2025-09-16T23:16:20+05:30", "agent_host": "192.168.162.166", "requests": "5.5000000000000000"}, {"ts": "2025-09-16T23:16:40+05:30", "agent_host": "192.168.162.166", "requests": "5.5000000000000000"}, {"ts": "2025-09-16T23:17:00+05:30", "agent_host": "192.168.162.166", "requests": "5.0000000000000000"}, {"ts": "2025-09-16T23:17:20+05:30", "agent_host": "192.168.162.166", "requests": "5.5000000000000000"}, {"ts": "2025-09-16T23:17:40+05:30", "agent_host": "192.168.162.166", "requests": "5.5000000000000000"}, {"ts": "2025-09-16T23:18:00+05:30", "agent_host": "192.168.162.166", "requests": "5.0000000000000000"}, {"ts": "2025-09-16T23:18:20+05:30", "agent_host": "192.168.162.166", "requests": "5.0000000000000000"}, {"ts": "2025-09-16T23:18:40+05:30", "agent_host": "192.168.162.166", "requests": "5.5000000000000000"}, {"ts": "2025-09-16T23:19:00+05:30", "agent_host": "192.168.162.166", "requests": "5.5000000000000000"}, {"ts": "2025-09-16T23:19:20+05:30", "agent_host": "192.168.162.166", "requests": "5.0000000000000000"}, {"ts": "2025-09-16T23:19:40+05:30", "agent_host": "192.168.162.166", "requests": "5.5000000000000000"}, {"ts": "2025-09-16T23:20:00+05:30", "agent_host": "192.168.162.166", "requests": "6.0000000000000000"}, {"ts": "2025-09-16T23:20:20+05:30", "agent_host": "192.168.162.166", "requests": "5.5000000000000000"}, {"ts": "2025-09-16T23:20:40+05:30", "agent_host": "192.168.162.166", "requests": "5.0000000000000000"}, {"ts": "2025-09-16T23:21:00+05:30", "agent_host": "192.168.162.166", "requests": null}]}}SSL Core Utilization:
[root@AN admin]# curl 'http://127.0.0.1:8000/device_metrics' \
-X POST \
-H 'Accept: application/json, text/plain, /' \
-H 'Content-Type: application/json' \
-H 'X-CSRFToken: SbPGBYZRNLwV2m5mL7l0GYh3Uxg2jq3c' \
-b 'csrftoken= SbPGBYZRNLwV2m5mL7l0GYh3Uxg2jq3c; hive_key=1; django_language=en; csrf_token= SbPGBYZRNLwV2m5mL7l0GYh3Uxg2jq3c; current_user=array; hive_sess=ebd2aa9c-93c2-4c61-8b0c-0fbc821d74c4' \
--data-raw '{
"metric_name": "ssl_core_utilization",
"agent_host": "192.168.162.166",
"interval": "20s",
"from": "now-15m",
"to": "now"
}'
{"status": 1, "data": {"status": 200, "message": "success", "data": []}}
