How can I calculate bandwidth usage per day or hour with Grafana, graphite and collectd?

6,029

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.

Share:
6,029

Related videos on Youtube

ujjain
Author by

ujjain

Updated on September 18, 2022

Comments

  • ujjain
    ujjain over 1 year

    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.

  • ujjain
    ujjain almost 8 years
    Original graph @ i.imgur.com/8KaLedth.png and the Integral graph @ i.imgur.com/7WrAPJDh.png. It doesn't look like the numbers are correct in the integral graph?
  • lsd
    lsd almost 8 years
    Looks ok I think, you may just want to scale it.