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) CollectEnterpriseMetric(ch chan<- prometheus.Metric, hostname string, controllerID string)
- 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) CollectOrganizationMetric(ch chan<- prometheus.Metric, hostname string, controllerID string)
- func (c *GarmCollector) CollectPoolMetric(ch chan<- prometheus.Metric, hostname string, controllerID string)
- func (c *GarmCollector) CollectProviderMetric(ch chan<- prometheus.Metric, hostname string, controllerID string)
- func (c *GarmCollector) CollectRepositoryMetric(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) 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)
Click to show internal directories.
Click to hide internal directories.