Documentation
¶
Index ¶
- Constants
- type Details
- type Ec2Cost
- type Instance
- type Metrics
- func (m *Metrics) Collect(ch chan<- prometheus.Metric)
- func (m *Metrics) Describe(ch chan<- *prometheus.Desc)
- func (m *Metrics) GetFargatePricing(ctx context.Context)
- func (m *Metrics) GetInstances(ctx context.Context)
- func (m *Metrics) GetNodes(ctx context.Context)
- func (m *Metrics) GetOnDemandPricing(ctx context.Context)
- func (m *Metrics) GetPods(ctx context.Context)
- func (m *Metrics) GetSpotPricing(ctx context.Context)
- func (m *Metrics) GetUsageCost()
- type Node
- type Pod
- type PodResources
- type Pricing
- type Product
- type SKU
- type Terms
Constants ¶
View Source
const ( TermOnDemand string = "JRTCKXETXF" TermPerHour string = "6YS6EN2CT7" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct { Instances map[string]*Instance Pods map[string]*Pod Nodes map[string]*Node Metrics map[string]*prometheus.CounterVec // contains filtered or unexported fields }
func NewMetrics ¶
func (*Metrics) Collect ¶ added in v0.5.0
func (m *Metrics) Collect(ch chan<- prometheus.Metric)
func (*Metrics) Describe ¶ added in v0.5.0
func (m *Metrics) Describe(ch chan<- *prometheus.Desc)
func (*Metrics) GetFargatePricing ¶
func (*Metrics) GetInstances ¶
func (*Metrics) GetOnDemandPricing ¶
func (*Metrics) GetSpotPricing ¶ added in v0.8.0
func (*Metrics) GetUsageCost ¶ added in v0.4.0
func (m *Metrics) GetUsageCost()
Click to show internal directories.
Click to hide internal directories.