https://github.com/thomastjdev/rrd_graphs_c3js
Python flask script for visualizing data from Monitorix RRD with C3js.
https://github.com/thomastjdev/rrd_graphs_c3js
Last synced: 7 months ago
JSON representation
Python flask script for visualizing data from Monitorix RRD with C3js.
- Host: GitHub
- URL: https://github.com/thomastjdev/rrd_graphs_c3js
- Owner: ThomasTJdev
- License: mit
- Created: 2017-01-21T20:51:21.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-21T20:52:09.000Z (about 9 years ago)
- Last Synced: 2025-03-21T20:16:13.520Z (12 months ago)
- Language: HTML
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Visualize RRD data in charts
============================
Export RRD data and visualize it with a flask webserver
License
-------
ThomasTJ - MIT
Requirements
------------
* Python >= 3
* Flask
* CDN jquery, d3js, c3js (is already included)
* Install and run Monitorix (webserver is not needed)
Run
---
Run:
python3 app.py
Access the webserver:
* 0.0.0.0:5004/1h
* 0.0.0.0:5004/3h
* 0.0.0.0:5004/24h
* 0.0.0.0:5004/8d
* 0.0.0.0:5004/charts_all
Update data
-----------
This is done automatically through the app.py
* cd scripts
* ./rrd_executeAll_xport.sh
How it works
------------
1. Monitorix creates RRD DB where system information is stored
2. The scripts in the **script** folder:
* It gathers the data from the RRD
* Exports it to JSON
3. The python **parse_json_to_C3js.py** parses the data to C3js format
4. Running the **app.py** will serve the data through flask on 0.0.0.0:5004/charts_all
5. Change the hostname in app.py to your device name
TODO
----
* (DEV info) Remove not used code, which is imported from git system_information
* Run updating scripts and parsing as threads for optimizing speed (removing delay)
* Clock fq and memory y-axis and data - wrong thousands. Bytes instead of MB, etc.