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
Henry Dollman
10ef430826
small refactor in CreateLongerRecords
2024-10-08 12:42:02 -04:00
Henry Dollman
d672017af0
add peak values for cpu and net
2024-10-07 19:20:53 -04:00
Henry Dollman
e81f8ac387
add zfs arc to longer records
2024-10-07 11:45:09 -04:00
Henry Dollman
73aae62c2e
add ZFS ARC memory accounting
2024-10-05 18:07:42 -04:00
Henry Dollman
af4877ca30
add MEM_CALC env var
2024-10-05 15:29:27 -04:00
Henry Dollman
c407fe9af0
exclude sensor if temp <=0 || temp >= 200
2024-10-05 11:14:20 -04:00
Henry Dollman
66cc0a4b24
log stats on startup if log level is debug
2024-10-02 19:58:02 -04:00
Henry Dollman
f051f6a5f8
add dockerManager / fix for Docker 24 and older
...
* dockerManager now handles all docker api interaction and container metrics tracking
* sets unlimited concurrency for docker 24 and older
2024-10-02 19:45:26 -04:00
Henry Dollman
45e1283b83
move system.Info to Agent struct
...
* cleaner to store entire info struct rather than separate properties for unchanging values
2024-10-02 12:34:42 -04:00
Henry Dollman
9ab359d3cf
add SENSORS env var
2024-09-29 16:36:32 -04:00
Henry Dollman
7a5ec067f5
refactor records package
2024-09-29 13:36:03 -04:00
Henry Dollman
98563d643d
refactor alerts and move managers to hub struct
...
- resource alerts called from updateSystem to avoid needing to pull from db after update
2024-09-29 13:35:38 -04:00
Henry Dollman
268e364bd4
update MemoryStats type
2024-09-29 12:36:19 -04:00
Henry Dollman
dd84a9fd35
remove semaphore and limit docker host connections to 10
2024-09-29 12:30:30 -04:00
Henry Dollman
2f4e537f72
change containerStatsMutex to a RWMutex
2024-09-28 19:13:24 -04:00
Henry Dollman
9637363cf3
combine container.Stats and container.PrevContainerStats
2024-09-28 18:51:46 -04:00
Henry Dollman
73d0dd25ec
agent refactoring - create agent/docker.go, agent/system.go
2024-09-28 17:49:04 -04:00
Henry Dollman
2ecf5572ba
remove addr, pubKey fields from agent struct
2024-09-28 16:48:55 -04:00
Henry Dollman
5e97167ee0
Fetch kernel, hostname, cpu at start rather than every run
2024-09-28 16:38:52 -04:00
Henry Dollman
1a4862ecd9
remove containerStats mutex and add stats by index
2024-09-27 19:06:37 -04:00
Henry Dollman
4694642674
add apiContainerList variable to reduce memory allocations
2024-09-27 16:10:31 -04:00
Henry Dollman
56c0b86025
rename variables for clarity
2024-09-27 14:56:53 -04:00
Henry Dollman
82e3f3c7c1
Fix temperature sensors not reporting if any sensor lacks valid data ( #167 )
2024-09-27 13:10:13 -04:00
Henry Dollman
cc32b50d82
add agent.debug and comments
2024-09-27 12:17:19 -04:00
Henry Dollman
764e043e83
add slog and LOG_LEVEL to agent
2024-09-26 20:07:35 -04:00