81 Commits
Author SHA1 Message Date
Qiu Jian 5bb3958547 fix(region): add all.servers.any_pool/all.hosts.any_pool metrics 2021-04-27 01:49:28 +08:00
Qiu Jian c2d3355ba6 response scope-specific metrics 2021-04-04 20:08:13 +08:00
Qiu Jian 3248f57253 fix(region): add usage cache, speedup response 2021-04-04 20:08:13 +08:00
Qiu Jian 762664fd0e fix(region): add more usage metrics, e.g. ports.eip, servers.last_week, pending_delete_servers.last_week 2021-03-31 03:38:51 +08:00
Qiu Jian 4f474ad8b2 fix(region): network eip stats not correct 2021-03-09 02:47:50 +08:00
Yousong Zhou b2980ce2b4 region: usages: add [{all,domain}.]networks etc. 2021-02-02 16:23:13 +08:00
Yousong Zhou 098f99314d region: usages: fix field name of vpcs for system scope 2021-02-02 16:23:13 +08:00
rainzm d1ed0ec679 feat(region): add instance_snapshot for regionquota 2020-11-25 18:22:29 +08:00
Qiu Jian bc5c74b1bd fix: add host.memoty.total and host.cpu.total usage stats 2020-11-19 01:23:05 +08:00
wanyaoqi 0b11854a8b usage: host show isolated dev reserved memory 2020-11-10 16:03:13 +08:00
Qiu Jian ce06e078f0 fix: server usage status not correct 2020-10-25 08:34:51 +08:00
Qu Xuan d7ae0eaa8d fix: add rds cpu and memory usage 2020-10-19 11:22:06 +08:00
Qu Xuan f251559c39 feature: add dns interface 2020-09-02 16:30:05 +08:00
Jian QiuandQiu Jian 7336ff732c fix: cleanup logic for nics of pending_deleted guests (#7668)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2020-08-31 09:32:34 +08:00
Yousong Zhou c2bca8ab39 Feature/yousong text (#7487)
* notify: log with context info

* region: guests: log with context info

* region: hosts: log with context info

* region: misc: remove redundant log

* region: skus: use NewInternalServerError instead of NewGeneralError

* appsrv: dispatcher: preserve text id

* appsrv: dispatcher: remove commented-out code

* cloudcommon: db_dispatcher: note errors that won't be translated

* cloudcommon: db: rbac: preserve text id

* cloudcommon: caller: preserve text id

* treewide: fix fmt string

* region: guest_actions: preserve text id

* region: guest_actions: fix fmt string

* region: usages: fix fmt string

* mcclient: hosts: remove redundant return value

* cloudcommon: fetch: preserve text id

* region: guest_template: preserve text id

* cloudcommon: db: db_dispatcher: preserve text id

* region: guest_actions: preserve text id

* httperrors: add funcs for wrap lang tag into context

* vendor: golang.org/x/text

* httperrors: error with context

* httperrors: HTTPError

* treewide: fix typo

* treewide: use en in source code

* locales: initial version
2020-08-25 15:26:31 +08:00
wanyaoqi 29c0e53849 fix usage not set prefix (#7568) 2020-08-14 17:31:48 +08:00
wanyaoqi 54ff56c04e usage report reserved memory (#7525) 2020-08-10 15:40:43 +08:00
wanyaoqi fabd3577a1 include system usage 2020-06-28 18:17:02 +08:00
Qiu Jian 1dfef4dcfa fix: usage for schetag not accurate 2020-05-21 22:35:38 +08:00
wanyaoqi 844b865e2e add sys usage 2020-05-20 14:01:58 +08:00
Qu Xuan d66197068d fix: usage-handler 不统计虚拟的vpc wire 2020-04-29 15:58:03 +08:00
Qiu Jian f39f838166 fix: cloud-account-usage vpc/storage not accurate 2020-04-29 01:14:29 +08:00
Qiu Jian 8d7bc247c9 fix: cloudaccount usage region/zone count not accurate 2020-04-27 15:52:47 +08:00
Qiu Jian 912bf5c699 fix: cloud-account/provider usage not accurate 2020-04-27 02:10:23 +08:00
Qiu Jian 5536dda530 fix: add domain-level compute resource usage 2020-04-06 18:07:14 +08:00
Qiu Jian 9b0e464c1f fix: misc bugs in usage data 2020-04-04 23:11:09 +08:00
Zexi Li 9e9dcac496 Merge pull request #5684 from swordqiu/feature/qj-domain-level-quotas
feature: domain resource quota
2020-04-03 19:44:56 +08:00
Qiu Jian d1346771aa feature: domain resource quota 2020-04-03 02:03:55 +08:00
Qiu Jian 02671840b5 fix: disk/nics usage should exclude those pending_deleted 2020-04-02 01:40:38 +08:00
Qiu Jian a9e4902e1b feature: add domain usage with prefix "domain." 2019-12-21 14:17:45 +08:00
Qiu Jian f0ccabb27e fix: 1. image-quota-list 404 not found 2. usage nil pointer panic 2019-12-12 17:41:59 +08:00
Qiu Jian 3dba5360d7 quota recode 2019-12-12 11:31:41 +08:00
Qiu Jian cad0f2c1c5 feature: cloud account share_mode support 2019-11-15 15:09:12 +08:00
Qiu Jian 4a46cdeb19 fix: cloud-account-usage no data for domain admin 2019-08-17 18:37:53 +08:00
Qiu Jian 804e7a122f feature: bucket usage and quota check 2019-08-07 18:37:59 +08:00
Jian Qiu a172c1c37d fix: add all ports usage (#1659)
* fix: add all ports usage

* fix: action log project-domain charset is not utf8
2019-07-11 08:57:34 +08:00
Jian Qiu 06573f0fc8 fix: domain usage is overriden by project usage (#1624) 2019-07-09 23:24:01 +08:00
Qiu Jian e1eae840c2 add usage debug 2019-07-09 17:11:11 +08:00
Qiu Jian b7ac5ace13 add nics usage 2019-07-04 20:50:00 +08:00
Qiu Jian 369d7cba11 fix: add disk usage for domain and project 2019-07-04 18:04:03 +08:00
Qiu Jian aa44664448 fix: usage query support brands 2019-07-01 09:30:51 +08:00
Jian Qiu 1d7fd20df4 misc bugfix (#1296) 2019-06-19 02:45:52 +08:00
Qiu Jian de68df439d fix: add lb and group ip address usage 2019-06-18 18:14:41 +08:00
Qiu Jian b7027934db feature: 3-level policies, system/domain/project 2019-05-31 13:56:02 +08:00
Qiu Jian a95c0bac62 update query.Count to query.CountWithError 2019-04-23 12:02:35 +08:00
Qiu Jian 29c1fd3855 fix: clearn up codes that impacted by query.Count return value changes 2019-04-23 11:32:16 +08:00
Qiu Jian da57161fd0 fix: move all consts in compute/models to apis/compute 2019-04-17 09:23:19 +08:00
Qiu Jian 004d9b6f95 update copyright headers of all source 2019-03-29 14:47:48 +08:00
Qiu Jian f7c61a9750 fix: 1. usage hide system servers 2. host undo convert shows wrong
status
2019-03-12 13:39:22 +08:00
Qiu Jian 2e587bd6ab glance重构 update 1
Conflicts:
	Gopkg.lock
	pkg/appsrv/appsrv.go
	pkg/cloudcommon/options.go
	pkg/compute/models/hosts.go
	pkg/compute/models/quotas.go
	pkg/compute/service/service.go
	pkg/mcclient/mcclient.go
2018-12-26 22:52:13 +08:00