Commit Graph

217 Commits

Author SHA1 Message Date
Bot c606fd99f6 chore: optimize and fix github actions (cleanup, CI fixes, security scanner tuning) 2026-04-26 22:25:00 +08:00
naiba 9acffc11f6 chore: bump Go to 1.26, update dependencies and frontend templates
Co-authored-by: naiba/CloudCode <hi+cloudcode@nai.ba>
2026-03-20 11:23:03 +00:00
naiba be8ff11cae fix: upgrade CodeQL Action to v3 and generate swagger docs before build
- Upgrade github/codeql-action from v2 to v3 (v1/v2 deprecated)
- Upgrade actions/setup-go from v4 to v5
- Add swag init step before autobuild to generate cmd/dashboard/docs
  package, fixing "could not import: invalid package name" warning

Co-authored-by: naiba/CloudCode <hi+cloudcode@nai.ba>
2026-03-01 03:32:49 +00:00
naiba b6977b2d45 feat: trigger AtomGit release sync on release 2026-02-16 15:31:46 +08:00
naiba 6d2a12b7a4 fix: use Authorization header instead of access_token in request body for AtomGit API 2026-02-16 13:42:26 +08:00
naiba d9e05e594a feat: add AtomGit code and release sync workflows 2026-02-16 13:36:45 +08:00
奶爸 e61772e858 feat(v2.0.0): tsdb (#1162)
* feat: tsdb

* fix(ci): remove --parseGoList=false from swag init to fix dependency resolution

* fix(ci): fix swag init directory and temporary remove s390x support due to cgo issues

* fix(ci): fix swag init output directory to cmd/dashboard/docs

* fix(ci): set GOTOOLCHAIN=auto for gosec

* feat: add system storage maintenance for SQLite and TSDB

* shit

* feat: add s390x support and improve service monitoring

* ci: upgrade goreleaser-cross image to v1.25

* ci: add libzstd-dev:s390x for cross-compilation

* ci: build libzstd for s390x from source

* ci: add libzstd_linux_s390x.go for gozstd linking

* ci: use vendor mode for s390x gozstd build

* ci: clone zstd source for s390x build

* refactor(tsdb): rename MaxDiskUsageGB to MinFreeDiskSpaceGB and optimize queries

- Rename config to accurately reflect VictoriaMetrics behavior: minimum free disk space threshold
- Add QueryServiceHistoryByServerID for batch query optimization
- Fix hasStatus to avoid false status counting when only delay data exists
- Fix service aggregation boundary: use successCount*2 >= count
- Fix serviceID parsing with strconv.ParseUint error handling
- Add TagFiltersCacheSize for better query performance

* feat(api): add server metrics endpoint and simplify service history response

- Add /server/:id/metrics API for querying TSDB server metrics
- Simplify getServiceHistory by removing redundant data conversion
- Change AvgDelay type from float32 to float64
- Remove generated swagger docs (to be regenerated)
- Update TSDB query, writer and tests

* chore: 临时禁用不支持前端

* ci: cache zstd build for s390x to speed up CI

* fix(tsdb): fix race conditions, data correctness and optimize performance

- Fix TOCTOU race between IsClosed() and write/query by holding RLock
- Fix delay=0 excluded from stats by using hasDelay flag instead of value > 0
- Fix fmt.Sscanf -> strconv.ParseUint for server_id parsing with error logging
- Fix buffer unbounded growth by flushing inside lock when over maxSize
- Split makeMetricRow into makeServerMetricRow/makeServiceMetricRow
- Extract InitGlobalSettings() from Open() for VictoriaMetrics globals
- Remove redundant instance/GetInstance/SetInstance singleton
- Add error logging for silently skipped block decode errors
- Optimize WriteBatch* to build all rows in single write call
- Optimize downsample to use linear scan instead of map for sorted data
- Optimize query slice reuse across block iterations

* 服务添加DisplayIndex (#1166)

* 服务添加DisplayIndex

* 根据ai建议修改

---------

Co-authored-by: huYang <306061454@qq.com>

* fix(tsdb): restore SQLite fallback and monthly status reload on restart

- Restore ServiceHistory model and SQLite write fallback when TSDB is disabled
- Reload monthlyStatus (30-day) and serviceStatusToday from TSDB/SQLite on startup
- Add SQLite fallback query for /service/:id/history and /server/:id/service
- Remove breaking GET /service/:id endpoint, keep /service/:id/history only
- Add QueryServiceDailyStats to TSDB for per-day aggregation
- Add tests for monthly status and today stats loading from both TSDB and SQLite
- Migrate ServiceHistory table only when TSDB is disabled

* ci: exclude false-positive gosec rules G117, G703, G704

* feat(api): expose tsdb_enabled in setting response

* ci: restore G115 exclusion accidentally dropped in previous commit

* fix: update version numbers for OfficialAdmin and Official templates

* chore: upgrade frontend

* chore: upgrade frontend

---------

Co-authored-by: 胡说丷刂 <34758853+laosan-xx@users.noreply.github.com>
Co-authored-by: huYang <306061454@qq.com>
2026-02-15 13:13:33 +08:00
naiba 1eee2329eb fix: immutable release 2026-01-01 11:51:25 +08:00
naiba 7f8ca5cda9 chore: disable javascript scan 2026-01-01 10:35:15 +08:00
naiba 540c1cb1e7 feat: binding ip with session
🛡️staying safe even your frontend was hacked
2025-10-09 21:36:59 +08:00
naiba 875d89efaf chore: sync timeout 2025-06-22 13:51:27 +08:00
UUBulb 655d034f79 ci: use go1.24 (#1012) 2025-02-28 22:19:57 +08:00
naiba 78493d3f4d Revert "chore: setup dependabot (#972)" (#978)
This reverts commit 9581690518.
2025-01-29 19:29:00 +08:00
UUBulb 9581690518 chore: setup dependabot (#972) 2025-01-29 19:17:44 +08:00
naiba 7cb04d79ee feat: v1.5.2 2025-01-01 01:02:02 +08:00
UUBulb 3c72d6ce64 fix windows ci (#934)
* fix windows ci

* perm

* use custom writer

* remove patches

* fuck codeql
2025-01-01 00:58:57 +08:00
naiba 828588eef1 improve: 404 status code 2024-12-31 23:58:44 +08:00
UUBulb 6cf0e7f1cf issue template 必须填写配置 (#913) 2024-12-25 20:19:26 +08:00
UUBulb 0b73577c36 chore: update admin frontend screenshot (#893) 2024-12-20 22:37:28 +08:00
Moraxyc 8f8a30c02c Refactor: Load UserTemplates from embedded yaml file (#575)
* Refactor: Load UserTemplates from embedded yaml file

* feat: add version field to UserTemplates

* refactor: use shell script to fetch frontends

* chore: add *-dist to .gitignore

* refactor: rename to FrontendTemplates

BREAKING CHANGE: This commit changes the `user_templates` filed
in the communication json between backend and the admin-frontend.

Keep user config.yml `user_template` filed.
2024-12-10 21:57:20 +08:00
naiba 20ed50da33 feat: upgrade frontend 2024-12-09 20:41:48 +08:00
naiba 96b254a7b1 revert: keep v0 2024-12-07 12:39:30 +08:00
naiba fb387060a2 feat: upgrade frontend 2024-12-07 12:19:48 +08:00
naiba 251bc10af9 feat: v1.1 2024-12-07 01:18:34 +08:00
naiba 5bb013af04 feat: add nazhua theme 2024-12-06 23:45:12 +08:00
naiba 8755b65ac5 feat: upgrade frontend 2024-12-05 21:40:07 +08:00
naiba 31344f24b8 feat: setup pat 2024-12-05 21:14:10 +08:00
naiba 98dad746db feat: upgrade frontend 2024-12-04 20:37:29 +08:00
naiba 6295371cac feat: upgrade frontend 2024-12-03 20:17:11 +08:00
naiba c4bb4d4c39 feat: upgrade frontend 2024-12-02 23:55:12 +08:00
naiba f53bba2dd8 feat: upgrade frontend 2024-12-02 21:20:23 +08:00
UUBulb 07a942e234 chore: issue template typos (#529) 2024-12-02 20:52:51 +08:00
UUBulb b128a0a5ed fix server deletion api, add issue templates (#526)
* add issue templates

* fix: server deletion api
2024-12-01 23:45:26 +08:00
UUBulb 7f33f8239e fix(i18n): replace hyphen with underscore (#524)
* fix(i18n): repleace hyphen with underscore

* chore: upgrade user frontend

---------

Co-authored-by: naiba <hi@nai.ba>
2024-12-01 23:19:06 +08:00
naiba 6846c897ef fix: service item display logic 2024-12-01 21:57:13 +08:00
卖女孩的小火柴 dae8f7f24e Feature/v0 scripts (#512)
* update contributors[no ci]

* Add v0 release

* Add install.sh to keep the v0 panel functioning properly

* Modify sync.py

* Remove release-v0.yaml

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-12-01 21:52:38 +08:00
naiba cb06a303b7 fix: checkorigin when debug enabled & update fronted dist 2024-12-01 00:00:01 +08:00
naiba 166f25508c fix: dashboard waf page 2024-11-30 21:33:18 +08:00
naiba 08f0c25dfc chore: upgrade admin frontend 2024-11-30 17:18:11 +08:00
naiba 6cca88f027 fix: admin frontend 2024-11-30 15:19:55 +08:00
naiba f62934440d feat: 支持修改用户名 2024-11-30 15:05:46 +08:00
naiba 44aded493e chore: upgrade admin frontend 2024-11-30 13:50:46 +08:00
naiba 8b7d6be398 feat: update frontend 2024-11-30 11:46:28 +08:00
naiba d62d0aa11c fix: home page 500 2024-11-29 22:49:17 +08:00
naiba b78c92b2df fix: swago 2024-11-29 21:55:29 +08:00
naiba 037a131b66 fix: ci 2024-11-29 21:42:18 +08:00
naiba 970c0d0430 feat: embed dist 2024-11-29 21:31:39 +08:00
naiba fb99e88487 fix: aliyun docker url 2024-11-29 00:58:20 +08:00
UUBulb 1a827e04f4 ci: fix arm64 path parsing (#487) 2024-11-29 00:31:20 +08:00
naiba ade07f7450 chore: update readme 2024-11-28 20:43:07 +08:00