Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1025567
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T11:56:51+00:00 2026-05-16T11:56:51+00:00

I’m writing a small Django-based frontend to collect and graph internet usage statistics. Currently,

  • 0

I’m writing a small Django-based frontend to collect and graph internet usage statistics.

Currently, from our ISP, we get monthly text files that show the average bytes/second for every 5-minute interval. E.g.:

Date       Time        In      Out
28.03.2010 00:00:00 204304  228922
28.03.2010 00:05:00 104231  222998
28.03.2010 00:10:00 264292  210194
28.03.2010 00:15:00 212982  213048
28.03.2010 00:20:00 90543   139082
28.03.2010 00:25:00 71620   175556
28.03.2010 00:30:00 65382   207898
28.03.2010 00:35:00 68676   213925
28.03.2010 00:40:00 62974   204304
28.03.2010 00:45:00 54341   208427
28.03.2010 00:50:00 98822   155641

We multiply these numbers by 300 (5×60) to get the total bytes in/out for each 5-minute block.

(I’m actually curious why the ISP would give us average bytes/sec like that, instead of actually giving us the total bytes consumed in a 5 minute interval? To anybody in the know, is there some kind of technical basis to that?)

It’s then fairly trivial to tally these up to get daily or hourly totals, and graph them.

My question is pretty simple – in Django, what would be an efficient model for storing these?

The total bytes in/out doesn’t actually belong to a single point-in-time, it covers a period. Is there much point in storing each datapoint as both a start and end time, then storing the total bytes in/out? It feels cleaner doing that, but is it bad to just store a single date/time and make assumptions that it’s for the five minute interval preceding/after it (to be honest, I’m actually not even sure which of those two it is).

Or are there more clever/efficient ways of storing this data – the end result is we’d want to do things like graph the totals per hour or per day (or any arbitrary period), and also graph the actual flow rates etc.

I’m trying to find an efficient way of storing the data, that’s also easy to query for the above statistics.

Also, any particular good visualisations/stats we could use here?

Cheers,
Victor

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T11:56:52+00:00Added an answer on May 16, 2026 at 11:56 am

    RRDTool was pretty much designed for storing and graphing this sort of data

    http://oss.oetiker.ch/rrdtool/

    there are a couple different python wrappers available as well if you look on pypi

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.