Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CostExplorer ¶
type CostExplorer struct {
// contains filtered or unexported fields
}
CostExplorer is a structure representing the functions required to fetch data from AWS Cost Explorer
type EC2Instance ¶
type EC2Instance struct {
// contains filtered or unexported fields
}
EC2Instance is a structure representing the functions required to fetch data from EC2
type Exporter ¶
type Exporter struct { Job *config.Job Logger *logrus.Logger Metrics *metrics.Set Session *session.Session }
Exporter representst the structure for all app wide exporters and structs
func (*Exporter) CollectCostMetrics ¶
CollectCostMetrics scrapes the AWS Cost Explorer API and writes the metric data to Prometheus
func (*Exporter) CollectInstanceMetrics ¶
CollectInstanceMetrics scrapes the AWS EC2 API for Instance details and writes the metric data to Prometheus
func (*Exporter) SetAWSSession ¶
func (exporter *Exporter) SetAWSSession()
SetAWSSession is a method to create a new session for the AWS API
Click to show internal directories.
Click to hide internal directories.