how to monitor users traffic usage in MB

Suggested template:

Problem/Question

Relevant docs you followed/actions you took to solve the issue

Environment/Browser/Agent’s version etc

What I expected to happen

hi dear users i have multiple user on my server that connect throught ssh and i want to monitor how much bandwith they use in MB in total

I believe you need something like the tc.plugin to properly do this. If this seems too involved, read on for an easier workaround.

Our charts don’t currently have an easy way to show the “volume” that you’re looking for. But the Netdata API for DB queries does support this capability.

See the sample query at the end of the grouping methods for an example on how to get total kilobits if inbound traffic to an eth interface.

It’s not precisely what you want, especially if other traffic is going over the same interface as well, but it might be easier than setting up QoS with tc.