Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

Commit

Permalink
openvpn bw charts fix and readme update (#223)
Browse files Browse the repository at this point in the history
* change bw charts units to kilobits/s

* update plugin readme
  • Loading branch information
ilyam8 authored May 23, 2019
1 parent 5e58cd6 commit 19f748b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions modules/openvpn/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
12 changes: 6 additions & 6 deletions modules/openvpn/charts.go
Original file line number Diff line number Diff line change
Expand Up @@ -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},
},
},
}
Expand All @@ -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},
},
},
{
Expand Down

0 comments on commit 19f748b

Please sign in to comment.