Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exporter ¶
type Exporter struct { sync.Mutex // Our exporter object will be locakble to protect from concurrent scrapes // contains filtered or unexported fields }
Exporter collects S3 metrics
func (*Exporter) Collect ¶
func (e *Exporter) Collect(ch chan<- prometheus.Metric)
Collect fetches the stats from configured S3 and delivers them as Prometheus metrics. It implements prometheus.Collector
func (*Exporter) Describe ¶
func (e *Exporter) Describe(ch chan<- *prometheus.Desc)
Describe describes all the metrics ever exported by the S3 exporter. It implements prometheus.Collector.
type S3Client ¶
type S3Client struct {
// contains filtered or unexported fields
}
S3Client is a wrapper for AWS s3 client that implements helpers to get S3 metrics
func NewS3Client ¶
NewS3Client will return an initialized S3Client
type S3Gatherer ¶
S3Gatherer is the interface that implements the methods required to gather S3 data
Click to show internal directories.
Click to hide internal directories.