yusing
8114b04ab6
fix data race for system info
2025-02-25 04:29:17 +08:00
yusing
0d388a396c
fix data race
2025-02-24 19:24:46 +08:00
yusing
f455251645
metrics: fix metrics collection
2025-02-24 05:36:28 +08:00
yusing
b7b5090673
metrics: fix not using context
2025-02-24 03:28:47 +08:00
yusing
8d1e7f4331
fix sensor data not being returned to api
2025-02-19 15:30:22 +08:00
yusing
a8a209f0b0
simplify some code and implement metrics storage
2025-02-17 07:18:59 +08:00
yusing
1b7b6196c5
reduce memory usage and improve performance
2025-02-17 05:05:53 +08:00
yusing
ed7937a026
system metrics aggregation
2025-02-16 23:38:19 +08:00
yusing
f2de4692ea
fix system info timestamp
2025-02-16 04:18:19 +08:00
yusing
18d258aaa2
refactor and organize code
2025-02-15 05:44:47 +08:00
yusing
1af6dd9cf8
uses display name in uptime metrics, small refactor
2025-02-15 00:29:17 +08:00
yusing
205726b045
refactor
2025-02-14 22:04:45 +08:00
yusing
964e94b3ba
fix incorrect uptime history data
2025-02-14 21:30:49 +08:00
yusing
7047d37f70
fix system info metric crash on error
2025-02-14 12:36:45 +08:00
yusing
f0198616ad
improve error handling for system info metrics
2025-02-14 03:49:56 +08:00
yusing
409048c206
simplify code and fix metrics response
2025-02-14 02:19:58 +08:00
yusing
f84bd6a1e8
fix 5m period, fix websocket not responding on no data
2025-02-14 01:57:26 +08:00
yusing
40c4344f73
poller error formatting
2025-02-13 23:31:00 +08:00
yusing
3bd8aca2d2
period: change "1m" to "1mo" to avoid confusion
2025-02-13 21:18:30 +08:00
yusing
41d37579dc
small refactor
2025-02-13 18:52:00 +08:00
yusing
10d23828a7
metrics: fix 5m period
2025-02-13 18:47:17 +08:00
yusing
6bf4846ae8
poller: clear errors after logging
2025-02-13 17:23:00 +08:00
yusing
decd2c2ded
fix various endpoints
2025-02-13 15:05:16 +08:00
yusing
02d1c9ce98
refactor header utils to httpheader package, cleanup api endpoints
2025-02-13 07:32:59 +08:00
yusing
3c7fafa91f
improved metrics implementation
2025-02-13 05:58:30 +08:00
yusing
82042e0b99
refactor, fix metrics and upgrade go to 1.24.0
2025-02-12 11:15:45 +08:00
yusing
c807b30c8f
api: remove service health from prometheus, implement godoxy metrics
2025-02-12 05:30:34 +08:00
yusing
e1ee08361d
api: added network and sensors system info
2025-02-11 05:26:37 +08:00
yusing
73e2660e59
agent: add system-info endpoint
2025-02-11 01:10:09 +08:00
yusing
34858a1ba0
fix prometheus metrics gone after route changes
2024-12-18 00:54:04 +08:00
yusing
b162dcbfbe
updated incorrect metric help message
2024-11-13 04:46:31 +08:00
yusing
6194bac4c4
metric unregistration on route removal, fixed multi-ips as visitor label detected from x headers
2024-11-10 06:47:59 +08:00
yusing
f97e3f65fe
go version and deps update, fixed middlewares and metrics
...
- fixed "API JWT secret empty" warning output format
- fixed metrics initialized when it should not
- fixed middlewares.modifyRequest Host header not working properly
2024-11-08 06:14:08 +08:00
yusing
5214ae1760
uptime metrics
2024-11-07 11:44:01 +08:00
yusing
6712e9b109
initial prometheus metrics support, simplfied some code
2024-11-06 12:24:12 +08:00