Mt-trafmon - A per-second rate sampler with graphing and zooming in. Do you need your high-speed internet subscription?

Hi all,

https://github.com/bitflogger/mt-trafmon

I wanted a simple way to answer a question I've had for years: Do I actually need the internet bandwidth I'm paying for?

Most monitoring tools show averages over minutes or hours. That's useful, but it hides the short traffic bursts that often drive upgrade decisions. I wanted to see what my connection was really doing on a per-second basis, and keep that history long enough to make informed decisions.

So I built a lightweight MikroTik traffic monitoring solution that:

  • Collects interface counters directly from RouterOS
  • Stores traffic data at 1-second resolution
  • Keeps historical data (default configuration retains per-second data for 1 year and consolidated data for 5 years)
  • Generates interactive traffic graphs through a built-in web interface
  • Helps identify true peak utilization and burst behaviour
  • Makes it easier to determine whether your current internet subscription is oversized

A few features:

  • Single script deployment
  • Can act as collector, graph server, or both
  • Configurable graph periods and time ranges
  • Multiple graph styles
  • Custom graph sizes
  • Dark and light themes
  • Interactive zooming
  • Shows effective graph resolution based on RRD consolidation and graph size
  • Generates the underlying RRDTool command so you can create your own graphs and reports

The default setup stores enough detail to answer questions like:

  • Did I ever really saturate my connection?
  • How often do I exceed 500 Mbps?
  • Is my 1 Gbps subscription actually justified?
  • What is my true peak usage over months?

For me, the answer was pretty clear: despite having gigabit internet, actual sustained usage is as I expected: far lower than the ISP and commercials tell me I need. The per-second graphs provided much more insight than the modem's usage stats or traditional monitoring tools (that

The complete project, screenshots, installation instructions, and source code are available on GitHub:

https://github.com/bitflogger/mt-trafmon

The setup is intentionally lightweight and designed to be easy to deploy on a Linux host (possible windows too?). Feedback, feature requests, and pull requests are welcome.