mpawsalb

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const Version string = "0.0.1"

Version is the version of mackerel-plugin-aws-alb

Variables

This section is empty.

Functions

func Do

func Do()

Do the plugin

Types

type Plugin

type Plugin struct {
	Region          string
	AccessKeyID     string
	SecretAccessKey string
	CloudWatch      *cloudwatch.CloudWatch
	LBName          string
	TargetGroups    []string
	Prefix          string
}

Plugin is ALB plugin for mackerel.

func (*Plugin) FetchMetrics

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

FetchMetrics fetch elb metrics

func (*Plugin) GraphDefinition

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

GraphDefinition for Mackerel

func (*Plugin) MetricKeyPrefix

func (p *Plugin) MetricKeyPrefix() string

MetricKeyPrefix returns key prefix

Jump to

Keyboard shortcuts

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