Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCollector ¶
func NewCollector(filename string, _ time.Duration) prometheus.Collector
NewCollector creates a new Collector
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
Collector reads an openvpn status file and provides Prometheus metrics
func (*Collector) Collect ¶
func (coll *Collector) Collect(ch chan<- prometheus.Metric)
Collect implements the prometheus.Collector interface
func (*Collector) Describe ¶
func (coll *Collector) Describe(ch chan<- *prometheus.Desc)
Describe implements the prometheus.Collector interface
Click to show internal directories.
Click to hide internal directories.