mpawsec2ebs

package
v0.88.3 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2025 License: Apache-2.0 Imports: 20 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do()

Do the plugin

Types

type EBSPlugin

type EBSPlugin struct {
	// command line options
	Region          string
	AccessKeyID     string
	SecretAccessKey string
	InstanceID      string

	// internal states
	EC2        *ec2.Client
	CloudWatch *cloudwatch.Client
	Volumes    []types.Volume
	Hypervisor types.InstanceTypeHypervisor
}

EBSPlugin mackerel plugin for ebs

func (EBSPlugin) FetchMetrics

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

FetchMetrics fetch the metrics

func (EBSPlugin) GraphDefinition

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

GraphDefinition for plugin

Jump to

Keyboard shortcuts

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