-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add database monitor #3934
add database monitor #3934
Conversation
Whoa! Easy there, Partner!This PR is too big. Please break it up into smaller PRs. |
🤖 Generated by lychee actionSummary
Full action output |
Codecov ReportPatch has no changes to coverable lines. 📢 Thoughts on this report? Let us know!. |
service/database/api/req.go
Outdated
type PromMetric struct { | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why use this empty struct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it can be deleted
service/database/server/server.go
Outdated
go ps.Authenticate(errChan1, pr) | ||
go ps.DBReq(resChan, errChan2, pr) | ||
|
||
err1 := <-errChan1 | ||
err2 := <-errChan2 | ||
res := <-resChan | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adjust the logic to prevent excessive db queries due to failed authentication
* add: restserver for database monitor * add: victoriaMetrics for database monitor * Delete req.go.bak * fix: change database monitor server directory * Update vmstorage.yaml * fix: blocks without displaying an error * fix: database monitor * Update services.yml * fix: database monitor * fix: database monitor * fix: database monitor * fix: database monitor * fix: database monitor * fix: database monitor * Update go.work * Update vmagent.yaml * Update vmagent.yaml * Update vminsert.yaml * Update vmselect.yaml * Update vmstorage.yaml * fix: database monitor * fix: database monitor * fix: database monitor * fix: database monitor * fix: database monitor * fix: authentication and query * fix: authentication and query
🤖 Generated by Copilot at 1846fe2
Summary
🗄️🚀🔐
This pull request adds a new service/database module to the sealos project, which provides a REST API for querying metrics from a VictoriaMetrics cluster. It includes the code, tests, configuration, documentation, Dockerfile and Kubernetes manifests for the service. It also updates the GitHub workflow and the go.work file to include the new module.
Walkthrough