Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostfixQueueCollectScheduler ¶
type PostfixQueueCollectScheduler struct {
// contains filtered or unexported fields
}
PostfixQueueCollectScheduler to collect statistics for Postfix queue.
func NewPostfixQueueCollectScheduler ¶
func NewPostfixQueueCollectScheduler(q *postfix.PostQueue, logger log.Logger) *PostfixQueueCollectScheduler
NewPostfixQueueCollectScheduler returns new PostfixQueueCollectScheduler.
func (*PostfixQueueCollectScheduler) Collect ¶
func (s *PostfixQueueCollectScheduler) Collect()
Collect collects queue statistics from the postqueue.
func (*PostfixQueueCollectScheduler) Collector ¶
func (s *PostfixQueueCollectScheduler) Collector() prometheus.Collector
Collector returns the Collector of prometheus.
func (*PostfixQueueCollectScheduler) Start ¶
func (s *PostfixQueueCollectScheduler) Start(intervalSeconds uint64) chan bool
Start starts to collect statistics of postfix queue. Because collection starts after interval_seconds, if you want to collect immediately, please call Collect after start.
type PostfixQueueCollector ¶
type PostfixQueueCollector struct {
// contains filtered or unexported fields
}
PostfixQueueCollector to collect statistics of postfix queue in Prometheus format
func (*PostfixQueueCollector) Collect ¶
func (c *PostfixQueueCollector) Collect(ch chan<- prometheus.Metric)
Collect implements the prometheus.Collector interface.
func (*PostfixQueueCollector) Describe ¶
func (c *PostfixQueueCollector) Describe(ch chan<- *prometheus.Desc)
Describe implements the prometheus.Collector interface.
Click to show internal directories.
Click to hide internal directories.