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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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