Commit Graph
221 Commits
Author SHA1 Message Date
dependabot[bot] d8d8729ecb chore(deps): bump the github-actions group with 11 updates (#1198) 2026-06-05 11:01:02 +08:00
naiba 1927b0c6a4 chore(ci): add dependabot version updates for gomod and actions
Repo only had Dependabot security updates (reactive). Add weekly grouped
version updates for Go modules and GitHub Actions to keep dependencies
current and reduce CVE accumulation.
2026-06-05 01:08:00 +00:00
naibaandnaiba/CloudCode a5e2b0c36d ci: free gitee release storage before uploads
Co-authored-by: naiba/CloudCode <hi+cloudcode@nai.ba>
2026-05-19 05:06:38 +00:00
naibaandnaiba/CloudCode d8f077ffa2 ci: relax gitee release upload timeout
Co-authored-by: naiba/CloudCode <hi+cloudcode@nai.ba>
2026-05-19 03:59:48 +00:00
naibaandnaiba/CloudCode d61f953c81 ci: make gitee release sync retryable
Co-authored-by: naiba/CloudCode <hi+cloudcode@nai.ba>
2026-05-19 03:17:33 +00:00
naibaandnaiba/CloudCode 241506e390 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
naibaandnaiba/CloudCode 2a04897140 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 398e7f730b feat: trigger AtomGit release sync on release 2026-02-16 15:31:46 +08:00
naiba 4e747491a2 fix: use Authorization header instead of access_token in request body for AtomGit API 2026-02-16 13:42:26 +08:00
naiba 34842c5d99 feat: add AtomGit code and release sync workflows 2026-02-16 13:36:45 +08:00
3d0c9b963c 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 a134f6c0da fix: immutable release 2026-01-01 11:51:25 +08:00
naiba d7b36fe263 chore: disable javascript scan 2026-01-01 10:35:15 +08:00
naiba 3b2cefdd07 feat: binding ip with session
🛡️staying safe even your frontend was hacked
2025-10-09 21:36:59 +08:00
naiba fae01b3f09 chore: sync timeout 2025-06-22 13:51:27 +08:00
UUBulb d2ffe106ac ci: use go1.24 (#1012) 2025-02-28 22:19:57 +08:00
naiba 350f080af0 Revert "chore: setup dependabot (#972)" (#978)
This reverts commit 9581690518.
2025-01-29 19:29:00 +08:00
UUBulb 66b16e04b6 chore: setup dependabot (#972) 2025-01-29 19:17:44 +08:00
naiba cd311b4ae6 feat: v1.5.2 2025-01-01 01:02:02 +08:00
UUBulb 178d847836 fix windows ci (#934)
* fix windows ci

* perm

* use custom writer

* remove patches

* fuck codeql
2025-01-01 00:58:57 +08:00
naiba fcb0ced018 improve: 404 status code 2024-12-31 23:58:44 +08:00
UUBulb 2866cc69c3 issue template 必须填写配置 (#913) 2024-12-25 20:19:26 +08:00
UUBulb 0976b0ea37 chore: update admin frontend screenshot (#893) 2024-12-20 22:37:28 +08:00
Moraxyc 67190459f8 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 5ef21497c2 feat: upgrade frontend 2024-12-09 20:41:48 +08:00
naiba d143b38ed0 revert: keep v0 2024-12-07 12:39:30 +08:00
naiba 7c8cfc4b2f feat: upgrade frontend 2024-12-07 12:19:48 +08:00
naiba 55a867d077 feat: v1.1 2024-12-07 01:18:34 +08:00
naiba fc69eb075f feat: add nazhua theme 2024-12-06 23:45:12 +08:00
naiba e2d1ad43c3 feat: upgrade frontend 2024-12-05 21:40:07 +08:00
naiba 8b15c24ca5 feat: setup pat 2024-12-05 21:14:10 +08:00
naiba 4273b6a90b feat: upgrade frontend 2024-12-04 20:37:29 +08:00
naiba e70f52ec93 feat: upgrade frontend 2024-12-03 20:17:11 +08:00
naiba e3bb101206 feat: upgrade frontend 2024-12-02 23:55:12 +08:00
naiba a47f9acab4 feat: upgrade frontend 2024-12-02 21:20:23 +08:00
UUBulb 1b02fda2c8 chore: issue template typos (#529) 2024-12-02 20:52:51 +08:00
UUBulb 8f173f70cb fix server deletion api, add issue templates (#526)
* add issue templates

* fix: server deletion api
2024-12-01 23:45:26 +08:00
UUBulbandnaiba 6248c38830 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 4244b26a31 fix: service item display logic 2024-12-01 21:57:13 +08:00
卖女孩的小火柴andgithub-actions[bot] 95f49bdb0b 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 2438f835f5 fix: checkorigin when debug enabled & update fronted dist 2024-12-01 00:00:01 +08:00
naiba cb2ed77747 fix: dashboard waf page 2024-11-30 21:33:18 +08:00
naiba 45138b8a4f chore: upgrade admin frontend 2024-11-30 17:18:11 +08:00
naiba e8c9966e25 fix: admin frontend 2024-11-30 15:19:55 +08:00
naiba bbcfd6a83b feat: 支持修改用户名 2024-11-30 15:05:46 +08:00
naiba 38d898c078 chore: upgrade admin frontend 2024-11-30 13:50:46 +08:00
naiba faa57330f8 feat: update frontend 2024-11-30 11:46:28 +08:00
naiba 844947f89b fix: home page 500 2024-11-29 22:49:17 +08:00
naiba a3a7d70c8c fix: swago 2024-11-29 21:55:29 +08:00
naiba b5d70734f4 fix: ci 2024-11-29 21:42:18 +08:00