metrics

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: Apache-2.0 Imports: 8 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) CollectEnterpriseMetric added in v0.1.4

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

CollectOrganizationMetric collects the metrics for the enterprise objects

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) CollectOrganizationMetric added in v0.1.4

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

CollectOrganizationMetric collects the metrics for the organization objects

func (*GarmCollector) CollectPoolMetric added in v0.1.4

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

CollectPoolMetric collects the metrics for the pool objects

func (*GarmCollector) CollectProviderMetric added in v0.1.4

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

CollectPoolMetric collects the metrics for the pool objects

func (*GarmCollector) CollectRepositoryMetric added in v0.1.4

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

CollectOrganizationMetric collects the metrics for the repository objects

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