diff --git a/modules/openvpn/README.md b/modules/openvpn/README.md index ea999b23f..5568492aa 100644 --- a/modules/openvpn/README.md +++ b/modules/openvpn/README.md @@ -11,13 +11,13 @@ It produces the following charts: 1. **Total Number Of Active Clients** in clients * clients -2. **Total Traffic** in KiB/s +2. **Total Traffic** in kilobits/s * in * out Per user charts (disabled by default, see `per_user_stats` in the module config file): -1. **User Traffic** in KiB/s +1. **User Traffic** in kilobits/s * received * sent diff --git a/modules/openvpn/charts.go b/modules/openvpn/charts.go index 7e8674cae..8dd5528aa 100644 --- a/modules/openvpn/charts.go +++ b/modules/openvpn/charts.go @@ -23,13 +23,13 @@ var charts = Charts{ { ID: "total_traffic", Title: "Total Traffic", - Units: "KiB/s", + Units: "kilobits/s", Fam: "traffic", Ctx: "openvpn.total_traffic", Type: module.Area, Dims: Dims{ - {ID: "bytes_in", Name: "in", Algo: module.Incremental, Div: 1000}, - {ID: "bytes_out", Name: "out", Algo: module.Incremental, Div: -1000}, + {ID: "bytes_in", Name: "in", Algo: module.Incremental, Mul: 8, Div: 1000}, + {ID: "bytes_out", Name: "out", Algo: module.Incremental, Mul: 8, Div: -1000}, }, }, } @@ -38,13 +38,13 @@ var userCharts = Charts{ { ID: "%s_user_traffic", Title: "User Traffic", - Units: "KiB/s", + Units: "kilobits/s", Fam: "user %s", Ctx: "openvpn.user_traffic", Type: module.Area, Dims: Dims{ - {ID: "%s_bytes_received", Name: "received", Algo: module.Incremental, Div: 1000}, - {ID: "%s_bytes_sent", Name: "sent", Algo: module.Incremental, Div: -1000}, + {ID: "%s_bytes_received", Name: "received", Algo: module.Incremental, Mul: 8, Div: 1000}, + {ID: "%s_bytes_sent", Name: "sent", Algo: module.Incremental, Mul: 8, Div: -1000}, }, }, {