GithubHelp home page GithubHelp logo

host-monitoring-station's People

Contributors

meow-watermelon avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

simrit1

host-monitoring-station's Issues

num_total_procs is not accurate

The num_total_procs metric is using a wrong data source processes under /proc/stat. Need to figure out the correct data sources to calculate the count of total processes.

Allow hms_bootstrap_rrd.py to bootstrap one or more data sources

Currently hms_bootstrap_rrd.py can bootstrap all data sources at the same time only. This would not be convenient if we add new DS in the future.This request is to allow hms_bootstrap_rrd.py to have options to bootstrap one or more data sources specifically.

start and end parameters exception

end=start-8h would return HTTP response code 500 with following exception:

Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/flask/app.py", line 2447, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/lib/python3.9/site-packages/flask/app.py", line 1952, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/lib/python3.9/site-packages/flask/app.py", line 1821, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/lib/python3.9/site-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/usr/lib/python3.9/site-packages/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/lib/python3.9/site-packages/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "hms_web.py", line 49, in hms_load_graphs
    g.cpu_graph_filename = hms_graph.plot_cpu_graph()
  File "/home/ericlee/host-monitoring-station/src/hms/graph.py", line 103, in plot_cpu_graph
    rrdtool.graph(
rrdtool.OperationalError: the start and end times cannot be specified relative to each other

HMS web service returns HTTP RC 500 if start / end parameters are not usable by RRD graph

HMS web service returns HTTP RC 500 if start / end parameters are not usable by RRD graph. Example:

$ curl http://homeserver.internal:4080/hms?start=en
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>500 Internal Server Error</title>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>

Web service throws out rrdtool.OperationalError exception.

Support dynamic DS addition

When a new network interface is up or a new disk is online, the current application would throw out exceptions due to DS mismatch. It's good to have dynamic DS addition support so new devices metrics can be stored automatically.

Add CPU frequency graph

Default unit is kHz:

$ cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_cur_freq
3861959
3869662
3753244
3732574
3751998
3877918
3834753
3230508

The graph can be displayed in MHz unit.

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.