mppostqueue

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do()

Do the plugin

func UTCToJST added in v0.1.1

func UTCToJST(utc string) string

UTCToJST converts UTC to JST

Types

type PostqueuePlugin

type PostqueuePlugin struct {
	Prefix          string
	PostQueuePath   string
	PostQueueArgs   []string
	PostQueueOutput string
	MsgCategories   map[string]*regexp.Regexp
}

PostqueuePlugin mackerel plugin for Postfix postqueue metrics

func (*PostqueuePlugin) FetchMetrics

func (p *PostqueuePlugin) FetchMetrics() (map[string]float64, error)

FetchMetrics interface for mackerelplugin

func (*PostqueuePlugin) GraphDefinition

func (p *PostqueuePlugin) GraphDefinition() map[string]mp.Graphs

GraphDefinition interface for mackerelplugin

func (*PostqueuePlugin) MetricKeyPrefix

func (p *PostqueuePlugin) MetricKeyPrefix() string

MetricKeyPrefix interface for PluginWithPrefix

type PostqueuePluginConfig added in v0.1.3

type PostqueuePluginConfig struct {
	Prefix        string
	PostQueuePath string
	MsgCategories map[string]string
}

PostqueuePluginConfig is the configuration file format

Jump to

Keyboard shortcuts

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