Documentation ¶
Overview ¶
Package awsmetrics enables instrumenting the aws-sdk-go to emit prometheus metrics on AWS API calls
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Instrument ¶
func Instrument(session *session.Session, registry prometheus.Registerer) (*session.Session, error)
Instrument takes an aws-sdk-go (v1) session and instruments the underlying HTTPClient to emit prometheus metrics on SDK calls
func InstrumentHTTPClient ¶
func InstrumentHTTPClient(httpClient *http.Client, registry prometheus.Registerer) (*http.Client, error)
InstrumentHTTPClient turns an arbitrary http client into an aws sdk (v1) instrumented client
func MustInstrument ¶
func MustInstrument(session *session.Session, registry prometheus.Registerer) *session.Session
MustInstrument takes an aws-sdk-go (v1) session and instruments the underlying HTTPClient to emit prometheus metrics on SDK calls and panic if an error occurs
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.