Documentation ¶
Index ¶
- type OpenVPNExporter
- func (e *OpenVPNExporter) Collect(ch chan<- prometheus.Metric)
- func (e *OpenVPNExporter) CollectSubscriptionStatistics(client xmlrpc.Client, ch chan<- prometheus.Metric) error
- func (e *OpenVPNExporter) CollectVPNSummary(client xmlrpc.Client, ch chan<- prometheus.Metric) error
- func (e *OpenVPNExporter) Describe(ch chan<- *prometheus.Desc)
- type OpenvpnServerHeader
- type OpenvpnServerHeaderField
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 }
Click to show internal directories.
Click to hide internal directories.