Skip to content
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

Fix#347 add resource usage page #358

Open
wants to merge 23 commits into
base: dev
Choose a base branch
from

Conversation

qqzxingchen
Copy link
Contributor

本次改动:

  • 实现了资源用量-近期,资源用量-账单页面
    image
    image
  • 实现了定期向运维推送资源用量数据的定时任务
  • 将hdfs进行统计汇总的sumspace任务调度从settings.py文件中提取出来,直接执行

@qqzxingchen
Copy link
Contributor Author

定时推送数据模块:

* 通过自定义django管理命令 pushk8sdata ,可以执行推送的脚本;如下:
    $ python manage.py pushk8sdata
* 通过 crontab 定时调度该脚本执行(为了支持crontab,我将sirius_base进行进行了重做,因此以后要打镜像,一定要注意选择的基础镜像)

hdfs进行统计汇总的sumspace模块:

* 通过自定义djangou管理命令 calcsumspace ,可以很方便地使用django环境来执行sumspace脚本
    $ python manage.py calcsumspace

@LuPan2015
Copy link
Collaborator

这个是不是可以合并了?

@LuPan2015
Copy link
Collaborator

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants