Giter Club home page Giter Club logo

cita-monitor's People

Contributors

blankwu avatar flyq avatar jiangxianliang007 avatar k4nzdroid avatar mfuuzy avatar rainchen avatar sunfjun avatar zhouyun-zoe avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cita-monitor's Issues

the logic of pie chart Disk Usage is incorrect

each item of Metrics in a pie chart means one part of the whole pie.
so if here A means the total size of current node data used, while B means the disk size of current node, the percentages of them will be meaningless.

i think B should be

$NodeDisk-(Node_Get_DirInfo_TotalFileSize{job="$job",instance="$node:$port"} * 1024)

and the label of it should be something like unused disk.

image

service name should be the same as container

Docker Container

  • citamon_agent_process_exporter
  • citamon_agent_rabbitmq_exporter
  • citamon_agent_host_exporter
  • citamon_server_grafana
  • citamon_server_prometheus
  • citamon_server_alertmanager

should refactor agent/docker-compose.yml to repect the design

/etc directory can't access in macos docker

I noticed that the docker-compose uses the '/etc/localtime' and the '/etc/timezone', but this doesn't work in macos, in macos you can't use volumn on /etc directory, it will report an error. I solved this problem by modify the docker-compose and volumn an another localtime into docker.

can not start server on a Mac

docker-compose up                                                                                                                                  Fri Apr 17 16:01:48 CST 2020
Recreating citamon_server_alertmanager ... error

ERROR: for citamon_server_alertmanager  Cannot start service citamon_server_alertmanager: b'Mounts denied: \r\nThe path /etc/localtime\r\nis not shared from OS X and is not known to Docker.\r\nYou can configure shared paths from Docker -> Preferences... -> File Sharing.\r\nSee https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info.\r\n.'

ERROR: for citamon_server_alertmanager  Cannot start service citamon_server_alertmanager: b'Mounts denied: \r\nThe path /etc/localtime\r\nis not shared from OS X and is not known to Docker.\r\nYou can configure shared paths from Docker -> Preferences... -> File Sharing.\r\nSee https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info.\r\n.'
ERROR: Encountered errors while bringing up the project.

control data dir size checking frequency

问题:使用du 命令获取目录容量会影响性能
解决:降低data dir size 检查的频度,改为1个小时检查获取一次。
做法:把 du 的结果导到一个文件,执行 du 前判断文件修改时间和当前时间对比是否达到采集区间,没达到阀值就cat 结果,这样来做采集频率控制

show VERSION info in dashboard

based on PR #110

  1. run make generate-build-version to get build version
  2. run make show-full-version to get full version number string
  3. replace the full version number string in dashboard config json file when running docker build

quota info seems not work

When I use this monitor, in the "Node Info Dashboard"--> "quota info" district, I didn't see the difference between the a non-zero Quota Used and the zero quota-used. screenshot pasted here.

use a small python docker base image

candidate list:

# ↪  docker-images-sort-by-size  | grep python | sort -k 2                                                                                              Sun Sep 29 09:46:01 CST 2019
# 923MB   python:3                                                          ad01f54ca3a9
# 143MB   python:3.7-slim                                                   338ae06dfca5
# 179MB   python:3.7-slim-buster                                            b5a7c089ece3
# 940MB   python:3.7-stretch                                                b9d77e48a75c
# 98.7MB  python:3.7-alpine                                                 39fb80313465
#    

Refs:

https://blog.realkinetic.com/building-minimal-docker-containers-for-python-applications-37d0272c52f3

https://pythonspeed.com/articles/base-image-python-docker-images/

use docker to run develop tools

可以封装一个 build 用的image ,里面装好开发工具的依赖库,这样开发环境也很简单了,也是用docker 来执行命令

  1. create a docker image for developing, e.g.: 'citamon/devenv', use python as base image, install depenedencies used in make deps, should save Dockerfile to devtools/devenv/ dir
  2. refactor make deps, make code-quality to run dev tools with docker, e.g. : docker exec `

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.