collector

package
v0.0.0-...-2f81b85 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

type Build struct {
	GitCommit string
	GoVersion string
	OsVersion string
	StartTime int64
}

Build is a type that represents the build info

type ExporterCollector

type ExporterCollector struct {
	System    System
	Build     Build
	Log       logr.Logger
	StartTime *prometheus.Desc
	BuildInfo *prometheus.Desc
}

ExporterCollector collects metrics, mostly runtime, about this exporter in general.

func NewExporterCollector

func NewExporterCollector(s System, b Build, log logr.Logger) *ExporterCollector

NewExporterCollector returns a new ExporterCollector.

func (*ExporterCollector) Collect

func (c *ExporterCollector) Collect(ch chan<- prometheus.Metric)

Collect implements Prometheus' Collector interface and is used to collect metrics

func (*ExporterCollector) Describe

func (c *ExporterCollector) Describe(ch chan<- *prometheus.Desc)

Describe implements Prometheus' Collector interface and is used to describe metrics

type FlyCollector

type FlyCollector struct {
	System System
	Token  string
	Log    logr.Logger

	App  *prometheus.Desc
	Cert *prometheus.Desc
}

FlyCollector collects metrics

func NewFlyCollector

func NewFlyCollector(s System, token string, log logr.Logger) *FlyCollector

NewFlyCollector returns a new FlyCollector

func (*FlyCollector) Collect

func (c *FlyCollector) Collect(ch chan<- prometheus.Metric)

Collect implements Prometheus' Collector interface and is used to collect metrics

func (*FlyCollector) Describe

func (c *FlyCollector) Describe(ch chan<- *prometheus.Desc)

Describe implements Prometheus' Collector interface and is used to describe metrics

type System

type System struct {
	Namespace string
	Subsystem string
	Version   string
}

Jump to

Keyboard shortcuts

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