exporters

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenVPNExporter

type OpenVPNExporter struct {
	// contains filtered or unexported fields
}

func NewOpenVPNExporter

func NewOpenVPNExporter(xmlrpcPath string) (*OpenVPNExporter, error)

func (*OpenVPNExporter) Collect

func (e *OpenVPNExporter) Collect(ch chan<- prometheus.Metric)

func (*OpenVPNExporter) CollectSubscriptionStatistics

func (e *OpenVPNExporter) CollectSubscriptionStatistics(client xmlrpc.Client, ch chan<- prometheus.Metric) error

Get all fields by running: /usr/local/openvpn_as/scripts# OPENVPN_AS_DEBUG_XML=1 ./sacli SubscriptionStatus

func (*OpenVPNExporter) CollectVPNSummary

func (e *OpenVPNExporter) CollectVPNSummary(client xmlrpc.Client, ch chan<- prometheus.Metric) error

Get all fields by running: /usr/local/openvpn_as/scripts# OPENVPN_AS_DEBUG_XML=1 ./sacli VPNSummary

func (*OpenVPNExporter) Describe

func (e *OpenVPNExporter) Describe(ch chan<- *prometheus.Desc)

type OpenvpnServerHeader

type OpenvpnServerHeader struct {
	LabelColumns []string
	Metrics      []OpenvpnServerHeaderField
}

type OpenvpnServerHeaderField

type OpenvpnServerHeaderField struct {
	Column    string
	Desc      *prometheus.Desc
	ValueType prometheus.ValueType
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL