Commit Graph
95 Commits
Author SHA1 Message Date
naibaandnaiba/CloudCode d750fa035d chore(frontend-templates): bump user-dist v2.3.1
Co-authored-by: naiba/CloudCode <hi+cloudcode@nai.ba>
2026-06-20 11:01:54 +00:00
naiba d556c3216f chore(frontend-templates): bump user-dist v2.3.0 and nazhua-dist v1.1.0 2026-06-20 00:40:38 +00:00
naiba 8cd2da79b8 chore(frontend-templates): bump admin-dist v2.2.4 2026-06-20 00:39:47 +00:00
naiba 576e6773c0 fix(release): bump user-dist to v2.1.2 (v2.1.1 never released upstream)
The v2.2.2 Release workflow failed: fetch-frontends.sh fetched user-dist
from hamster1963/nezha-dash-v2 at v2.1.1, but upstream went v2.1.0 -> v2.1.2
and never tagged v2.1.1, so the dist.zip download 404'd and unzip aborted the
build. Point at the existing v2.1.2 asset.
2026-06-07 16:23:24 +00:00
naiba c595728609 chore(frontend-templates): bump admin-dist v2.2.2 and user-dist v2.1.1 2026-06-06 04:55:31 +00:00
naiba 6e9510d26a chore(frontend-templates): bump admin-dist v2.2.0 2026-06-05 02:42:58 +00:00
naiba e47b5b99f8 chore(frontend-templates): bump admin-dist v2.1.2 and user-dist v2.1.0 2026-06-02 03:31:36 +00:00
naiba 9b5199ac6c chore(frontend-templates): bump admin-frontend to v2.1.1 2026-05-31 15:14:48 +00:00
naibaandcloudcode 34ab8a31bc chore(frontend-templates): bump admin-frontend to v2.1.0
Embed the admin-frontend v2.1.0 release (PAT UI, CSRF handling, reserved
hosts) so the upcoming backend v2.1.0 ships the matching frontend.

Co-authored-by: cloudcode <cloudcode@users.noreply.github.com>
2026-05-31 10:26:41 +00:00
naibaandcloudcode 7432efde04 chore(frontend-templates): bump user-frontend to v2.0.4
Upstream hamster1963/nezha-dash-v2 v2.0.4 reviewed commit-by-commit for
supply-chain risk (dependency bumps only, no new packages/postinstall
scripts/network calls/obfuscation) and mirrored to nezhahq/user-frontend-backup.

Co-authored-by: cloudcode <cloudcode@users.noreply.github.com>
2026-05-31 09:49:57 +00:00
029695344c chore(frontend-templates): bump admin-frontend to v2.0.9
Co-authored-by: naiba/CloudCode <hi+cloudcode@nai.ba>

Co-authored-by: cloudcode <cloudcode@users.noreply.github.com>
2026-05-26 07:12:31 +00:00
naiba d202ecf8db chore(frontend-templates): bump admin-frontend to v2.0.8 2026-05-25 11:42:39 +00:00
naibaandnaiba/CloudCode 854e2edf17 chore: bump admin frontend to v2.0.7
Co-authored-by: naiba/CloudCode <hi+cloudcode@nai.ba>
2026-05-17 10:24:19 +08:00
naiba 027cb5f4b7 chore: upgrade frontend 2026-04-05 10:00:11 +08: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
naiba 0f9bc2d3ee chore: upgrade frontend 2026-03-01 11:50:56 +08:00
naiba fa7afd475f chore: bump admin-frontend to v2.0.4, nezha-dash-v1 to v2.0.1 2026-02-19 06:34:02 +00: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 ab1d9bddc0 chore: upgrade frontend 2026-01-10 20:23:28 +08:00
naiba 8ee8fe9ba7 chore: upgrade frontend 2026-01-10 17:38:15 +08:00
naiba 905930dfdf chore: upgrade frontend 2026-01-01 10:56:52 +08:00
naiba 09adc1310c chore: upgrade frontend 2025-10-09 18:32:30 +08:00
naiba 48d50f64df chore: upgrade frontend 2025-10-09 09:50:55 +08:00
naiba 603df316d4 chore: upgrade frontend 2025-10-09 09:38:01 +08:00
naiba 5cfde9c2f4 💩 f*ck react
react 纯傻逼,js ts 就是纯傻逼,浪费人生
2025-10-02 17:19:26 +08:00
naiba 298e178d3c feat: upgrade frontend 2025-10-02 15:30:21 +08:00
naiba 87770cd91e feat: upgrade frontend 2025-10-02 14:28:57 +08:00
naiba 7b3c3131cc chore: upgrade frontend 2025-08-23 21:14:02 +08:00
naiba 233bbc23b6 feat: 批量转移服务器给其他用户 2025-06-16 23:46:36 +08:00
naiba b296eb7a39 chore: upgrade frontend 2025-05-04 11:35:14 +08:00
naiba afe483a831 feat: upgrade frontend 2025-04-25 23:03:14 +08:00
naiba 9110853928 feat: upgrade frontend 2025-04-13 18:42:24 +08:00
naiba 0a36393258 feat: upgrade frontend 2025-04-13 12:28:28 +08:00
naiba b72536b74b feat: upgrade frontend 2025-03-31 19:53:19 +08:00
naiba ad0a4f374d chore: upgrade frontend 2025-03-29 11:29:58 +08:00
naiba af97e4b17d feat: upgrade frontend 2025-03-27 19:18:14 +08:00
naiba 33fcf05091 chore: upgrade frontend 2025-03-26 20:23:59 +08:00
naiba f51177bc08 chore: upgrade frontend 2025-03-25 22:51:11 +08:00
naiba ca35040d0b feat: upgrade frontend 2025-03-22 22:44:25 +08:00
naiba bad68fa9cf chore: upgrade frontend 2025-03-20 23:49:25 +08:00
naiba 8080fad11d chore: upgrade frontend 2025-03-19 22:23:38 +08:00
naiba 235ee05c91 feat: upgrade frontend 2025-03-15 22:31:16 +08:00
naiba 7c857fa4a6 chore: upgrade frontend 2025-03-08 18:48:30 +08:00
UUBulb 4d3393271b fix: config fields not generated on first startup (#1016)
* fix: config fields not generated on first startup

* cleanup

* fix reference

* replace yaml module

* remove duplicated fields

* remove yaml.v3 as a direct dependency

* update dependency

* chore
2025-03-03 19:02:25 +08:00
naiba cdb18eee01 chore: upgrade frontend 2025-02-28 22:05:06 +08:00
naiba ffd3cfc9da chore: upgrade frontend 2025-02-26 20:55:34 +08:00
naiba 0f1a6edfb1 chore: upgrade frontend 2025-02-20 22:59:38 +08:00
naiba 6c3ebd652d chore: upgrade frontend 2025-02-17 20:24:16 +08:00
naiba 91a531a339 chore: upgrade frontend 2025-02-07 22:22:30 +08:00
naiba 72e9676b49 chore: upgrade frontend 2025-02-05 18:50:33 +08:00