meow-watermelon / host-monitoring-station Goto Github PK
View Code? Open in Web Editor NEWA standalone monitoring system for local host
A standalone monitoring system for local host
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.
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.
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. 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.
This issue is used for tracking the efforts to clean up dead / unused code in HMS.
HMS cannot display over 24 hours graphs.
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 a new metric that shows the number of entries in ARP cache. File path is /proc/net/arp
.
Add UDP metrics. The metrics list will be updated later.
We need to catch exceptions if updating RRD database is failed.
Add TCP metrics. The metrics list will be updated later.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.