Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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
Click to show internal directories.
Click to hide internal directories.