Chuangbo Li
19b4477a75
fix: json.Unmarshal not resetting struct fields ( #345 )
...
The json.Unmarshal function was not properly resetting the Stats struct fields between iterations in the loop. This caused incorrect values to be retained from previous iterations, leading to unexpected behavior.
This commit fixes the issue by zero the struct in each loop iteration, ensures that each unmarshaling operation starts with a clean struct, preventing value carryover.
2024-12-28 17:06:37 -05:00
Henry Dollman
b08219dacf
refactor agent gpu code to make it easier to add intel / jetson
2024-12-17 17:12:58 -05:00
Henry Dollman
f201267e4e
generate first user username from email
2024-12-09 17:34:04 -05:00
Henry Dollman
59bdc0ce0d
add USER_CREATION env var and update migrations
2024-12-04 17:36:36 -05:00
Henry Dollman
6e08507dde
remove todo comments
2024-11-29 17:16:40 -05:00
Henry Dollman
87f7390eca
use new batch api for setting global alerts
2024-11-27 17:07:44 -05:00
Henry Dollman
ed01752546
update admin creation for pocketbase 0.23.0
2024-11-27 16:32:23 -05:00
Henry Dollman
46002a2171
remove echo dependency
2024-11-24 18:34:42 -05:00
Henry Dollman
14716d36a6
refactor go code for pocketbase 0.23.0 ( #300 )
2024-11-24 18:15:24 -05:00
Henry Dollman
b4bc8a31aa
add check / reset for invalid disk i/o rates
2024-11-24 15:56:12 -05:00
Henry Dollman
87ef769086
Merge branch 'main' of https://github.com/wwng2333/beszel
2024-11-17 11:23:06 -05:00
D
bcefb8e43c
fix IPv6 connection problem
...
use net.JoinHostPort to fix ipv6 address at createSystemConnection
2024-11-17 16:34:05 +08:00
Henry Dollman
a1641c5bcc
change ssh related timeouts from 5s to 4s
2024-11-15 16:29:36 -05:00
Henry Dollman
e6839480d9
use sync.Map for system connections
2024-11-15 15:35:26 -05:00
Henry Dollman
4cb7b97416
change podman socket path to use current uid
2024-11-12 18:14:43 -05:00
Henry Dollman
b1db450e00
enable gpu monitoring by default
2024-11-12 18:13:57 -05:00
Henry Dollman
2e8ac98924
Improve disk discovery slightly by checking partition labels
2024-11-12 18:11:44 -05:00
Henry Dollman
3cd11d6bc4
improve podman support ( #211 )
2024-11-12 11:59:56 -05:00
Henry Dollman
03de73560c
add gpu power consumption chart
2024-11-08 20:31:22 -05:00
Henry Dollman
cd10727795
gpu usage and vram charts
2024-11-08 18:00:30 -05:00
Henry Dollman
8262a9a45b
progress on gpu metrics
2024-11-08 16:52:50 -05:00
Henry Dollman
655bfc95ca
add ability to specify partition for extra disk using folder name
2024-11-04 20:52:27 -05:00
Henry Dollman
741575df15
revert tweaks for old docker. needs more testing.
2024-11-02 14:43:35 -04:00
Henry Dollman
df0f3a154f
rtl layout progress and updates to arabic translations
2024-10-31 16:48:28 -04:00
Henry Dollman
f8fc74116c
rm *sensors.Warnings conversion - gopsutil windows uses different type
2024-10-26 14:02:19 -04:00
Henry Dollman
4094df3a61
fix: skip temperature collection if SENSORS is empty string ( #196 )
2024-10-24 15:10:20 -04:00
Henry Dollman
4a78ce1b16
skip temperatures code if sensors whitelist is set to empty string
2024-10-23 18:37:38 -04:00
Henry Dollman
f8f1e01cb4
add settings page and api route for generating config.yml
2024-10-23 18:30:24 -04:00
Henry Dollman
c7463f2b9f
limit collection lookups and other small refactoring
...
* adds error handling for collection lookup (#216 )
2024-10-23 13:10:39 -04:00
Henry Dollman
a975466fc7
add declarative system management with config.yml ( #70 , #206 )
2024-10-22 18:46:52 -04:00
Henry Dollman
539c0ccb1d
retry failed containers separately so we can run them in parallel ( #58 )
2024-10-21 17:00:13 -04:00
Henry Dollman
b5c158d1b3
update debug logs
2024-10-19 18:12:25 -04:00
Henry Dollman
8bf7a0e1d6
add DOCKER_TIMEOUT env var
2024-10-19 16:33:33 -04:00
Henry Dollman
6e9b84c6c7
use goroutines to send alerts
2024-10-19 14:28:41 -04:00
Yukino16
34a8053967
fix: path escape for system name in alert message ( #209 )
2024-10-17 10:31:36 -04:00
Henry Dollman
ee92e338cb
update debug log locations
2024-10-16 18:12:43 -04:00
Henry Dollman
9c061774a3
update alert notification titles
2024-10-16 18:02:38 -04:00
Henry Dollman
6b6d3fabc0
change disk alert to monitor usage of any disk, not only root
2024-10-16 17:21:05 -04:00
Henry Dollman
59d541dd1d
fix edge case overwriting extra filesystem with root io fallback
2024-10-16 15:26:12 -04:00
Henry Dollman
02641ec007
time averaged thresholds for alerts
2024-10-15 21:59:53 -04:00
Henry Dollman
299152413a
small longer record creation refactoring
2024-10-15 19:54:46 -04:00
Henry Dollman
703a3c41c9
empty info for systems that are paused
2024-10-15 18:31:03 -04:00
Henry Dollman
6c31263e60
add bandwidth alerts
2024-10-12 17:22:25 -04:00
Henry Dollman
10d348c052
temperature alerts
2024-10-12 14:57:46 -04:00
Henry Dollman
6cf6661f2e
raise docker client timeout to 8 seconds if version <= 24
2024-10-12 12:24:53 -04:00
Henry Dollman
5b0fac429b
move update functions to agent / hub packages
2024-10-10 18:36:01 -04:00
Henry Dollman
efca56ceca
add temp debug logs to troubleshoot #196
2024-10-10 18:28:24 -04:00
Henry Dollman
64f0a23969
move fsStats creation to NewAgent function
2024-10-10 18:18:57 -04:00
Henry Dollman
cedf80a869
add max 1m values for cpu, bandwidth, disk io
...
* removes unused things from chart.tsx
* updates y axis width only if it grows
* add generic area chart component and remove individual cpu, bandwidth, disk io charts
2024-10-10 15:11:48 -04:00
Henry Dollman
76cea9d3c3
increase docker client timeout to 2100ms
2024-10-08 19:17:03 -04:00