collector

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package collector includes all individual collectors to gather and export flexlm metrics.

Index

Constants

This section is empty.

Variables

View Source
var (

	// LicenseConfig is going to be read once in main, and then used here.
	LicenseConfig config.Configuration
)

Functions

This section is empty.

Types

type Collector

type Collector interface {
	// Get new metrics and expose them via prometheus registry.
	Update(ch chan<- prometheus.Metric) error
}

Collector is the interface a collector has to implement.

func NewLmstatCollector

func NewLmstatCollector() (Collector, error)

NewLmstatCollector returns a new Collector exposing lmstat license stats.

func NewLmstatFeatureExpCollector added in v0.0.2

func NewLmstatFeatureExpCollector() (Collector, error)

NewLmstatFeatureExpCollector returns a new Collector exposing lmstat license feature expiration date.

type FlexlmCollector

type FlexlmCollector struct {
	Collectors map[string]Collector
}

FlexlmCollector implements the prometheus.Collector interface.

func NewFlexlmCollector

func NewFlexlmCollector(filters ...string) (*FlexlmCollector, error)

NewFlexlmCollector creates a new FlexlmCollector

func (FlexlmCollector) Collect

func (n FlexlmCollector) Collect(ch chan<- prometheus.Metric)

Collect implements the prometheus.Collector interface.

func (FlexlmCollector) Describe

func (n FlexlmCollector) Describe(ch chan<- *prometheus.Desc)

Describe implements the prometheus.Collector interface.

Jump to

Keyboard shortcuts

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