collector

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL