metrics

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RecordWebhookWithLabels

func RecordWebhookWithLabels(lvs ...string) error

RecordWebhookWithLabels will increment a webhook metric identified by specific values. If metrics are disabled, this function is a noop.

func RegisterCollectors

func RegisterCollectors(runner *runner.Runner) error

Types

type GarmCollector

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

func NewGarmCollector

func NewGarmCollector(r *runner.Runner) (*GarmCollector, error)

func (*GarmCollector) Collect

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

func (*GarmCollector) CollectHealthMetric

func (c *GarmCollector) CollectHealthMetric(ch chan<- prometheus.Metric, hostname string, controllerID string)

func (*GarmCollector) CollectInstanceMetric

func (c *GarmCollector) CollectInstanceMetric(ch chan<- prometheus.Metric, hostname string, controllerID string)

CollectInstanceMetric collects the metrics for the runner instances reflecting the statuses and the pool they belong to.

func (*GarmCollector) Describe

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

Jump to

Keyboard shortcuts

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