Documentation
¶
Index ¶
- func RecordWebhookWithLabels(lvs ...string) error
- func RegisterCollectors(runner *runner.Runner) error
- type GarmCollector
- func (c *GarmCollector) Collect(ch chan<- prometheus.Metric)
- func (c *GarmCollector) CollectHealthMetric(ch chan<- prometheus.Metric, hostname string, controllerID string)
- func (c *GarmCollector) CollectInstanceMetric(ch chan<- prometheus.Metric, hostname string, controllerID string)
- func (c *GarmCollector) Describe(ch chan<- *prometheus.Desc)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RecordWebhookWithLabels ¶
RecordWebhookWithLabels will increment a webhook metric identified by specific values. If metrics are disabled, this function is a noop.
func RegisterCollectors ¶
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)
Click to show internal directories.
Click to hide internal directories.