/linux-monitoring-influxdb-grafana-python

Program that writes information about disk usage, logged users, internet connection, temperature into influxdb to then be accessed by grafana.

Primary LanguagePython

linux-monitoring-influxdb-grafana-python

This is a program that fetches a lot of information from the linux virtual filesystem, such as cpu temperature, ram usage, network traffic, as well as calling a few bash commands such as 'who' and 'ps'. Then writes all information into InfluxDB so that Grafana can render some nice graphics with all that.

This project was somewhat based on this one

Dependencies

Installation

  1. Install all above dependencies.
  2. Enable InfluxDB and Grafana services
  3. Clone or download this repo.

Usage

  1. Run medidas.py
$ python3 medidas.py
  1. By default, Grafana can be accessed by a browser under 'localhost:3000'.
  2. There you may import the layout available in this repository.

Bugs

  • Network device code is for my laptop specifically, you'll have to change that line yourself.

TODO

  • A lot of performance improvements, such as creation of threads.
  • Some coding changes.

Contributing

You really don't want to

License

???