mppostgres

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do()

Do the plugin

Types

type PostgresPlugin

type PostgresPlugin struct {
	Host     string
	Port     string
	Username string
	Password string
	SSLmode  string
	Prefix   string
	Timeout  int
	Tempfile string
	Option   string
}

PostgresPlugin mackerel plugin for PostgreSQL

func (PostgresPlugin) FetchMetrics

func (p PostgresPlugin) FetchMetrics() (map[string]interface{}, error)

FetchMetrics interface for mackerelplugin

func (PostgresPlugin) GraphDefinition

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

GraphDefinition interface for mackerelplugin

func (PostgresPlugin) MetricKeyPrefix added in v0.28.1

func (p PostgresPlugin) MetricKeyPrefix() string

MetricKeyPrefix retruns the metrics key prefix

Jump to

Keyboard shortcuts

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