* add credits * create table * change name & add table name * optimize interface * print result err log * fix * add credits for debt * creditsTransaction add region * refactor debt status: Normal\LowBalance\CriticalBalance\Debt\DebtDeletion\Final Period. * refactor debt status: Normal\LowBalance\CriticalBalance\Debt\DebtDeletion\Final Period. * add retry transaction * optimize determine status * support card pay & subscription plan & operator service * add pay notify & redirect url * fix * optimize * add error test log * fix req time * fix * fix * add subscription payment api * only processes the `CAPTURE_RESULT` notify type * fix * fix * fixed notify structure parsing * fix * fix * init a Free initial subscription plan √/ Initialize credits Create √ * init resourcequota wiht subscription * fix * fix * fix * fix * fix * fix * fix * fix * fix card type * fix * Subscribe controller: real-time monitoring subscriptionTransaction processing created/upgrade/downgrade * fix * fix * fix * determine current debt status with subscription * optimize pay api resp * process subscription auto renewal * optimize log * fix * fix * add GetAppResourceCosts api * fix * add GetLastSubscriptionTransaction api * add GetSubscriptionUpgradeAmount api * add /subscription/flush-quota api * fix * add remote flush subscription quota * go mod tidy * fix * add retry flush subscription quota * add custom debt status send email body * fix * fix * fix * fix * fix * add free process subscription * fix * add default pay expire time * optimize * support kyc & optimize * optimiz * add descributed lock with gorm db * optimize debt reconcile * optimize send email * optimize split sms vms code map; handler failure reflush debt status. * optimize * add email username * optimize * skip zero user * optimize flush svc * add convert test func * fix * optimize log * use the k8s client with cache * fix golang ci lint
RESTServer
Description
restserver for database monitoring
Getting Started
Running on the cluster
- Build and push your image to the location specified by
IMG:
make docker-build docker-push IMG=<some-registry>/sealos-cloud-database-monitor:tag
- Deploy the restserver:
kubectl apply -f deploy/manifests/
How it works
To enable the database frontend application to retrieve monitoring data, you need to modify the environment variable MONITOR_URL of the frontend deployment to the corresponding address of the restserver.
Additionally, to configure the data source, you need to set the environment variable VM_SERVICE_HOST of the restserver deployment to the correct address.
e.g.
http://prometheus.sealos.svc.cluster.local
License
Copyright 2023.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.