Skip to content

Commit

Permalink
Merge pull request #58 from Team-MostWanted/feature/openvpnas-2.14.0-…
Browse files Browse the repository at this point in the history
…support

Feature/openvpnas 2.14.0 support
  • Loading branch information
rossigee authored Jul 4, 2024
2 parents 09462bb + 50bbb25 commit afa3104
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1,690 deletions.
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

0 comments on commit afa3104

Please sign in to comment.