mpawsec2

package
v0.27.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2017 License: Apache-2.0 Imports: 10 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 EC2Plugin

type EC2Plugin struct {
	InstanceID  string
	Region      string
	Credentials *credentials.Credentials
	CloudWatch  *cloudwatch.CloudWatch
}

EC2Plugin is a mackerel plugin for ec2

func (EC2Plugin) FetchMetrics

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

FetchMetrics fetches metrics from CloudWatch

func (EC2Plugin) GraphDefinition

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

GraphDefinition returns graphdef

Jump to

Keyboard shortcuts

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