{"repo":"juan-leon/lowcharts","free":true,"listed":false,"github":"https://github.com/juan-leon/lowcharts","clone":"git clone https://github.com/juan-leon/lowcharts.git","description":"Tool to draw low-resolution graphs in terminal","language":"Rust","stars":249,"topics":["plot","shell","troubleshooting","log","analysis","command-line","statistics","stats"],"license":"MIT","category":"cli-tools","readme_excerpt":"lowcharts Tool to draw low-resolution graphs in terminal. lowcharts is meant to be used in those scenarios where we have numerical data in text files that we want to display in the terminal to do a basic analysis. An example would be the logs of a service (webserver, database, proxy, container orchestration, etc.) where times (or sizes) of requests are logged. In an ideal world you would have those logs accessible via a kibana (or similar) or those metrics exposed to a prometheus (or similar) and graphed in a grafana dashboard (or similar). But sometimes we need to cope with non ideal worlds, and troubleshoot a service with nothing more of what we can muster in a shell terminal. Usage Type lowcharts --help , or lowcharts PLOT-TYPE --help for a complete list of options. Currently six basic types of plots are supported: Bar chart for matches in the input Since grep -c does not aggregate counts per pattern, this is maybe my most frequent use case. This chart is generated using lowcharts matches --input database.log SELECT UPDATE DELETE INSERT DROP : Histogram for numerical inputs This chart is generated using python3 -c 'import random; [print(random.normalvariate(5, 5)) for in range(100000)]' lowcharts hist : This was inspired by data-hacks. However, for some big log files I found that project was a lot slower than what I would like, and I found that a rust-compiled binary was better suited to my needs: easy to copy around in a hurry (no deps) and very fast. Options for specifyi","default_branch":null,"files":null,"tree":[],"storefront":"/r/juan-leon","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/juan-leon/lowcharts/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}