I'd like to collect the bytes sent and received per day or per hour of a server, so I can collect bandwidth requirements.

I figured setting up grafana, graphite and collectd to collect bandwidth usage metrics, but these only show bandwidth usage per second.

Can I use this information to calculate bytes sent in a timeframe or do I need to think of a new solution?

Example of current collected data, eth0 incoming and outgoing bandwidth in bytes per second.

1 Answer 1


If it is truly the number of packets since the last query (some systems, when you query the stats, reset to 0, others do not, you have to be sure), then use can use the sumSeries function, or more probably integral. Use grafana to select the integral function and your time range to see if you get the result you want, then you can pull that query and use it elsewhere if you want.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.