Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatTag ¶
FormatTag replaces special characters with underscores for prometheus metric naming convention: https://prometheus.io/docs/instrumenting/writing_exporters/#naming
Types ¶
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
Exporter is a struct that contains an instance of AWS clients and job configuration
func (*Exporter) AddClient ¶
func (ex *Exporter) AddClient(client MetricsCollector)
AddClient adds a MetricsCollector client to the Exporter.
func (*Exporter) Clients ¶
func (ex *Exporter) Clients() []MetricsCollector
Clients returns the Exporter's clients.
type MetricsCollector ¶
type MetricsCollector interface {
Collect() error
}
MetricsCollector is an interface for a set of methods to interact with AWS
Click to show internal directories.
Click to hide internal directories.