awsmetrics

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL