costexplorer

package
v0.0.0-...-29da2f4 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2019 License: MIT Imports: 12 Imported by: 0

README

aws costexplorer plugins

Warning: The Cost Explorer API costs $0.01 per request.

aws_ce_daily

configuration
  • groups ([]string): default is ["SERVICE", "AZ"]
  • metrics ([]string): default is ["AmortizedCost", "BlendedCost", "UnblendedCost"]
access control

The following IAM actions are required:

  • ce:Get*
output

Produce one datum for each service group. The data will be backdated to now - 24h.

name: aws_ce_daily_cost tags:

A lower-case tag is output for every group. The default set is:

  • service: the name of a service, as returned by cost explorer
  • az: the name of a service's availability zone, or NoAZ as returned by cost explorer

fields:

See aws documentation for more information about cost types. The plugin will output one field per metric configured. The default set is:

  • AmortizedCost (money)
  • BlendedCost (money)
  • UnblendedCost (money)

Documentation

Index

Constants

View Source
const (
	DailyPluginName = "aws_ce_daily"
	DailyPluginCost = "aws_ce_daily_cost"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Daily

type Daily struct {
	Metrics []string `toml:"metrics"`
	Groups  []string `toml:"groups"`
	// contains filtered or unexported fields
}

func (*Daily) DefaultConfig

func (plugin *Daily) DefaultConfig() string

func (*Daily) Description

func (plugin *Daily) Description() string

func (*Daily) Init

func (plugin *Daily) Init() error

func (*Daily) Source

func (plugin *Daily) Source(c context.Context, collector metric.Collector) error

Jump to

Keyboard shortcuts

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