Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BeanstalkdCollector ¶
type BeanstalkdCollector struct {
// contains filtered or unexported fields
}
BeanstalkdCollector collects metrics from a beanstalkd server for consumption by Prometheus
func NewBeanstalkdCollector ¶
func NewBeanstalkdCollector(beanstalkd BeanstalkdServer, opts CollectorOpts, logger log.Logger) (*BeanstalkdCollector, error)
NewBeanstalkdCollector returns an initialised BeanstalkdCollector
func (*BeanstalkdCollector) Collect ¶
func (b *BeanstalkdCollector) Collect(ch chan<- prometheus.Metric)
Collect implements the prometheus.Collector interface to collect the beanstalkd metrics.
func (*BeanstalkdCollector) Describe ¶
func (b *BeanstalkdCollector) Describe(ch chan<- *prometheus.Desc)
Describe implements the prometheus.Collector interface to describe the collected metrics.
type BeanstalkdServer ¶
type BeanstalkdServer interface { ListTubes() ([]string, error) FetchStats() (beanstalkd.ServerStats, error) FetchTubesStats(map[string]bool) (beanstalkd.ManyTubeStats, error) }
BeanstalkdServer is the minimum interface required by a BeanstalkdCollector
Click to show internal directories.
Click to hide internal directories.