Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graph Total (total network traffic per machine, total disk write/reads per device) #1573

Open
axet opened this issue Sep 6, 2023 · 0 comments

Comments

@axet
Copy link

axet commented Sep 6, 2023

Is your feature request related to a problem? Please describe.

SSD wearing level depends on total TB written to the drive. Knowing how many TB written per which period helps (last year, last month). It can help you understand when you using your SSD maximum what month.

Having to know how many GB have you send / read from your network interface very useful.

Basically we are missing Total all time per sum of all values on a displaying graph (I guess as a option per plugin / graph). Would be useful for most plugins. Total fail2ban bans all time per graph (day/week/month/year). Total GB send / read per interface. Total TB written to drive all time.

We need one new graph type with Cur/Min/Max/Total and old graph type with Cur/Min/Avg/Max. I guess plugin can be configured to use proper one.

For example:

  1. graphs which need Total: diskstats_throughput (single device), if_ (single device).
  2. graphs need average: fw_packets (packets / second), diskstats_throughput (all devices)

Describe the solution you'd like

adding rrdtool with Total argument, in additional to Cur/Min/Avg/Max

Describe alternatives you've considered

aliases? annoying.

Additional context

EDIT: possible solution:

/etc/munin/munin-conf.d/total.conf

[localhost.localdomain]
  if_wlp1s0.graph_args_after \
        VDEF:totaldown=gdown,TOTAL \
        VDEF:totalup=gup,TOTAL \
        COMMENT:\ \\n \
        GPRINT:totalup:\ TotalUP\ \%6.2lf\%s\\n \
        GPRINT:totaldown:\ TotalDOWN\ \%6.2lf\%s\\n
  diskstats_throughput.graph_args_after \
        VDEF:totalread=grdbytes,TOTAL \
        VDEF:totalwrite=gwrbytes,TOTAL \
        COMMENT:\ \\n \
        GPRINT:totalread:\ TotalREAD\ \%6.2lf\%s\\n \
        GPRINT:totalwrite:\ TotalWRITE\ \%6.2lf\%s\\n

Patches:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant