mpawss3requests

package
v0.58.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2019 License: Apache-2.0 Imports: 9 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do()

Do the plugin

Types

type S3RequestsPlugin

type S3RequestsPlugin struct {
	BucketName  string
	FilterID    string
	KeyPrefix   string
	LabelPrefix string

	AccessKeyID     string
	SecretAccessKey string
	Region          string

	CloudWatch *cloudwatch.CloudWatch
}

S3RequestsPlugin is mackerel plugin for aws s3 with metric configuration

func (S3RequestsPlugin) FetchMetrics

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

FetchMetrics fetch the metrics

func (S3RequestsPlugin) GraphDefinition

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

GraphDefinition of S3RequestsPlugin

func (S3RequestsPlugin) MetricKeyPrefix

func (p S3RequestsPlugin) MetricKeyPrefix() string

MetricKeyPrefix interface for PluginWithPrefix

func (S3RequestsPlugin) MetricLabelPrefix

func (p S3RequestsPlugin) MetricLabelPrefix() string

MetricLabelPrefix ...

Jump to

Keyboard shortcuts

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