collector

package
v2.0.0-...-4619405 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuth0Collector

func NewAuth0Collector(config CollectorConfig) (prometheus.Collector, error)

Types

type Auth0Collector

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

func (Auth0Collector) Collect

func (ghb Auth0Collector) Collect(ch chan<- prometheus.Metric)

Collect implements the prometheus.Collector interface.

func (Auth0Collector) Describe

func (ghb Auth0Collector) Describe(ch chan<- *prometheus.Desc)

Describe implements the prometheus.Collector interface.

type Auth0StatsCollector

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

func (*Auth0StatsCollector) Describe

func (asc *Auth0StatsCollector) Describe(ch chan<- *prometheus.Desc)

Describe implements Collector.

func (*Auth0StatsCollector) Reload

func (asc *Auth0StatsCollector) Reload(ctx context.Context) error

func (*Auth0StatsCollector) Update

func (asc *Auth0StatsCollector) Update(ctx context.Context, ch chan<- prometheus.Metric) error

type Auth0UsersCollector

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

func (*Auth0UsersCollector) Describe

func (auc *Auth0UsersCollector) Describe(ch chan<- *prometheus.Desc)

Describe implements Collector.

func (*Auth0UsersCollector) Reload

func (auc *Auth0UsersCollector) Reload(ctx context.Context) error

func (*Auth0UsersCollector) Update

func (auc *Auth0UsersCollector) Update(ctx context.Context, ch chan<- prometheus.Metric) error

type Collector

type Collector interface {
	Describe(ch chan<- *prometheus.Desc)
	// Reload configuration, repositories, workflows, etc.
	Reload(context.Context) error
	// Get new metrics and expose them via prometheus registry.
	Update(context.Context, chan<- prometheus.Metric) error
}

Collector is the interface a collector has to implement.

func NewAuth0StatsCollector

func NewAuth0StatsCollector(ctx context.Context, config CollectorConfig) (Collector, error)

NewOrgActionsCollector returns a new Collector exposing actions billing stats.

func NewAuth0UsersCollector

func NewAuth0UsersCollector(ctx context.Context, config CollectorConfig) (Collector, error)

NewOrgActionsCollector returns a new Collector exposing actions billing stats.

type CollectorConfig

type CollectorConfig struct {
	Logger log.Logger
	Domain *string
	Auth0  *management.Management
}

Jump to

Keyboard shortcuts

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