Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recording bandwith usage over a time period and showing it using a graph #160

Open
kaushalyap opened this issue Apr 1, 2020 · 6 comments
Labels
discussion enhancement New feature or request

Comments

@kaushalyap
Copy link

I am making a feature request here. I would like see bandwich allowing users to record their bandwidth usage over a period of time and showing it using a graph. ex: https://github.com/codebox/bitmeteros

  1. For graphing we can use https://github.com/fdehau/tui-rs
  2. In order to record bandwidth utilization overtime we have output bandwidth utilization to disk in aggregated fashion.
@imsnif
Copy link
Owner

imsnif commented Apr 1, 2020

Hey @kaushalyap - thanks for your suggestion! bandwhich already uses tui-rs to render its UI.
We currently have a PR in the works to display cumulative bandwidth: #155

About displaying it in a graph: I feel this might be beyond the capabilities I'd like bandwhich to have. But maybe this is something that can be implemented on top of bandwhich, either requiring it as a library or using raw_mode and piping it somewhere else?

@kaushalyap
Copy link
Author

understandable if you output the stats to db another project can pick things up
ex: https://codebox.net/pages/bitmeteros-bmclient-man

@imsnif
Copy link
Owner

imsnif commented Apr 2, 2020

Sure - that can be done with raw_mode, right? bandwhich --raw | something-that-parses-output-and-writes-to-db

@kaushalyap
Copy link
Author

kaushalyap commented Apr 2, 2020

Having a flag to aggregate results(for a specific period(day, month), by process) is pretty useful, otherwise someone have to recalculate the aggregated bandwidth consumption from --raw


Another issue :
I am sometimes seeing <UNKNOWN> for process name, why is that?

@imsnif
Copy link
Owner

imsnif commented Apr 2, 2020

How would you suggest such a flag should work?

re: <UNKNOWN>, see this: #149

@kaushalyap
Copy link
Author

Seems we have to get #155 done, and we may able to extend things from there.

Anyway I am suggesting some flags like below

  • t : aggregated result for the hour
  • d : aggregated result for the day
  • m : aggregated result for the month
  • g : aggregate results by process names

so using something like

  • sudo bandwhich -dr -i iName will keep outputting aggregated results for the day
  • sudo bandwhich -dgr -i iName will keep outputting aggregated results grouped by process name for the day

And raw output format should contain timestamp in order for other tools parse the output and produce graphs.

@cyqsimon cyqsimon added the enhancement New feature or request label Aug 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants