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

Feature/openvpnas 2.14.0 support #58

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions exporters/openvpnas_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ func (e *OpenVPNExporter) CollectSubscriptionStatistics(client xmlrpc.Client, ch
SubscriptionStatus struct {
AgentDisabled bool `xml:"agent_disabled"`
AgentId string `xml:"agent_id"`
BillingId string `xml:"billing_id"`
CcLimit int `xml:"cc_limit"`
CurrentCc int `xml:"current_cc"`
Error string `xml:"error"`
Expand All @@ -173,6 +174,7 @@ func (e *OpenVPNExporter) CollectSubscriptionStatistics(client xmlrpc.Client, ch
Overdraft bool `xml:"overdraft"`
Server string `xml:"server"`
State string `xml:"state"`
Subkey string `xml:"subkey"`
TotalCc int `xml:"total_cc"`
Type string `xml:"type"`
UpdatesFailed int `xml:"updates_failed"`
Expand Down
15 changes: 14 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
module github.com/rossigee/openvpnas-exporter

go 1.16
go 1.21

toolchain go1.22.2

require (
alexejk.io/go-xmlrpc v0.5.3
github.com/prometheus/client_golang v1.19.1
)

require (
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/prometheus/client_model v0.6.1 // indirect
github.com/prometheus/common v0.55.0 // indirect
github.com/prometheus/procfs v0.15.1 // indirect
golang.org/x/sys v0.21.0 // indirect
google.golang.org/protobuf v1.34.2 // indirect
)
Loading