MISC-TN-029 — A monitoring system for IoT devices with Glances, InfluxDB, and Grafana

From DAVE Developer's Wiki
Revision as of 13:56, 21 September 2023 by U0001 (talk | contribs)

Jump to: navigation, search
Info Box
SBCSPG-1.jpg Applies to SBCSPG
Cloud-computing-banner.jpg Applies to IoT
Warning-icon.png This technical note was validated against specific versions of hardware and software. It may not work with other versions. Warning-icon.png


History[edit | edit source]

Version Date Notes
1.0.0 September 2023 First public release

Introduction[edit | edit source]

armbian@sbcspg:~/devel/glances$ python3 -m venv ~/devel/glances/venv/ armbian@sbcspg:~/devel/glances$ source env/bin/activate -bash: env/bin/activate: No such file or directory armbian@sbcspg:~/devel/glances$ source venv/bin/activate (venv) armbian@sbcspg:~/devel/glances$ pip install glances bottle influxdb Collecting glances

 Downloading Glances-3.4.0.3-py3-none-any.whl (697 kB)
    |████████████████████████████████| 697 kB 1.4 MB/s 

Collecting bottle

 Downloading bottle-0.12.25-py3-none-any.whl (90 kB)
    |████████████████████████████████| 90 kB 800 kB/s 

Collecting influxdb

 Downloading influxdb-5.3.1-py2.py3-none-any.whl (77 kB)
    |████████████████████████████████| 77 kB 426 kB/s 

Collecting ujson>=5.4.0

 Downloading ujson-5.8.0.tar.gz (7.2 MB)
    |████████████████████████████████| 7.2 MB 79 kB/s 
 Installing build dependencies ... done
 WARNING: Missing build requirements in pyproject.toml for ujson>=5.4.0 from https://files.pythonhosted.org/packages/15/16/ff0a051f9a6e122f07630ed1e9cbe0e0b769273e123673f0d2aa17fe3a36/ujson-5.8.0.tar.gz#sha256=78e318def4ade898a461b3d92a79f9441e7e0e4d2ad5419abed4336d702c7425 (from glances).
 WARNING: The project does not specify a build backend, and pip cannot fall back to setuptools without 'wheel'.
 Getting requirements to build wheel ... done
 Installing backend dependencies ... done
   Preparing wheel metadata ... done

Collecting defusedxml

 Downloading defusedxml-0.7.1-py2.py3-none-any.whl (25 kB)

Collecting psutil>=5.6.7

 Downloading psutil-5.9.5.tar.gz (493 kB)
    |████████████████████████████████| 493 kB 989 kB/s 
 Installing build dependencies ... done
 Getting requirements to build wheel ... done
   Preparing wheel metadata ... done

Collecting packaging

 Using cached packaging-23.1-py3-none-any.whl (48 kB)

Collecting msgpack

 Downloading msgpack-1.0.6.tar.gz (166 kB)
    |████████████████████████████████| 166 kB 1.9 MB/s 
 Installing build dependencies ... done
 Getting requirements to build wheel ... done
 Installing backend dependencies ... done
   Preparing wheel metadata ... done

Collecting requests>=2.17.0

 Downloading requests-2.31.0-py3-none-any.whl (62 kB)
    |████████████████████████████████| 62 kB 102 kB/s 

Collecting python-dateutil>=2.6.0

 Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
    |████████████████████████████████| 247 kB 1.2 MB/s 

Collecting six>=1.10.0

 Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)

Collecting pytz

 Downloading pytz-2023.3.post1-py2.py3-none-any.whl (502 kB)
    |████████████████████████████████| 502 kB 1.7 MB/s 

Collecting idna<4,>=2.5

 Downloading idna-3.4-py3-none-any.whl (61 kB)
    |████████████████████████████████| 61 kB 15 kB/s 

Collecting urllib3<3,>=1.21.1

 Downloading urllib3-2.0.5-py3-none-any.whl (123 kB)
    |████████████████████████████████| 123 kB 1.1 MB/s 

Collecting charset-normalizer<4,>=2

 Downloading charset_normalizer-3.2.0-py3-none-any.whl (46 kB)
    |████████████████████████████████| 46 kB 440 kB/s 

Collecting certifi>=2017.4.17

 Downloading certifi-2023.7.22-py3-none-any.whl (158 kB)
    |████████████████████████████████| 158 kB 1.9 MB/s 

Building wheels for collected packages: psutil, ujson, msgpack

 Building wheel for psutil (PEP 517) ... done
 Created wheel for psutil: filename=psutil-5.9.5-cp39-abi3-linux_armv7l.whl size=275912 sha256=d0b38cd2abba96499a39acfc923ec66a9ada40e3264035e2d0739d60a500ac1a
 Stored in directory: /home/armbian/.cache/pip/wheels/74/d1/7d/d9ae7d9aea0f1cebed73f37868df7b5f3333e7f30163b3e558
 Building wheel for ujson (PEP 517) ... done
 Created wheel for ujson: filename=ujson-5.8.0-cp39-cp39-linux_armv7l.whl size=43721 sha256=e75aa525edb1accecce46ffb68467622bd9f6976712e7d651340ddb380ba6335
 Stored in directory: /home/armbian/.cache/pip/wheels/fa/b8/d0/86f0f82c834d098fca594ab0fb3ca6d4b9d726b386d1e02885
 Building wheel for msgpack (PEP 517) ... done
 Created wheel for msgpack: filename=msgpack-1.0.6-cp39-cp39-linux_armv7l.whl size=487508 sha256=9e70c81642dc8f1cebb7dfdf407a41f076e8b46d717085560729105821d0ff9e
 Stored in directory: /home/armbian/.cache/pip/wheels/37/4e/d3/fa9d02a88faaceddfc21a594ad8673ba36dd2766c21bee55b6

Successfully built psutil ujson msgpack Installing collected packages: urllib3, six, idna, charset-normalizer, certifi, ujson, requests, pytz, python-dateutil, psutil, packaging, msgpack, defusedxml, influxdb, glances, bottle Successfully installed bottle-0.12.25 certifi-2023.7.22 charset-normalizer-3.2.0 defusedxml-0.7.1 glances-3.4.0.3 idna-3.4 influxdb-5.3.1 msgpack-1.0.6 packaging-23.1 psutil-5.9.5 python-dateutil-2.8.2 pytz-2023.3.post1 requests-2.31.0 six-1.16.0 ujson-5.8.0 urllib3-2.0.5