collector

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: Apache-2.0 Imports: 19 Imported by: 3

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 config.Configuration

LicenseConfig is going to be read once in main, and then used here.

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(logger log.Logger) (Collector, error)

NewLmstatCollector returns a new Collector exposing lmstat license stats.

func NewLmstatFeatureExpCollector added in v0.0.2

func NewLmstatFeatureExpCollector(logger log.Logger) (Collector, error)

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

type FlexlmCollector

type FlexlmCollector struct {
	Collectors map[string]Collector
	// contains filtered or unexported fields
}

FlexlmCollector implements the prometheus.Collector interface.

func NewFlexlmCollector

func NewFlexlmCollector(logger log.Logger, 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