netenglabs / suzieq

Using network observability to operate and design healthier networks
https://www.stardustsystems.net/
Apache License 2.0
791 stars 106 forks source link

sq-poller/coalescer: log env info at startup #857

Closed claudiolor closed 1 year ago

claudiolor commented 1 year ago

Description

This PR introduces some additional logging, in the poller controller/worker and coalescer, providing info about the current version of SuzieQ and the environment where it runs. The logs show:

An example of the log at the poller startup:

2023-02-13 16:11:45,389 - suzieq.poller.controller - WARNING - log level WARNING
2023-02-13 16:12:00,840 - suzieq.poller.controller - INFO - 
|-----------------------------------------------------|
SuzieQ Poller Controller v0.20.0 
Python version: 3.8.12 (default, Dec 12 2021, 18:37:21) 
[GCC 11.2.0]
Platform: Linux-5.15.0-60-generic-x86_64-with-glibc2.34 
CPU: 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz 16 cores - freq. 800.00Mhz - 4600.00Mhz 
CPU load 1m, 5m, 15m: 2.5%, 3.3%, 3.0%
Memory: total: 33370701824, available: 20688240640
|-----------------------------------------------------|

Type of change