package
2.0.4
Repository: https://github.com/mintel/elasticsearch-asg.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

AWSStatusCode returns the HTTP status code from an AWS client error as a string.
ElasticsearchStatusCode returns the HTTP status code from an Elasticsearch client error as a string.
InstrumentAWS adds Prometheus metrics to an AWS client or session.
InstrumentHTTP returns a new HTTP client instrumented with Prometheus metrics.
MustRegisterOnce registers a set of Prometheus Collectors with the default Registerer, ignoring AlreadyRegisteredErrors.
NewVecTimer creates a new VecTimer.

# Constants

LabelEvent is used by InstrumentHTTP() to describe the different stages of an HTTP connection (DNS resolution, TLS handshake, etc).
LabelMethod is the Prometheus label name for HTTP method.
LabelOperation is the Prometheus label name for operations within an AWS API.
LabelOperation is the Prometheus label name for the AWS region label.
LabelService is the Prometheus label name for AWS API names.
LabelStatus is the Prometheus label name for the status of a process such as "success" or "error".
LabelStatusCode is the Prometheus label name for HTTP status codes.

# Variables

DefaultObjectives are default objectives for Prometheus Summary metrics.

# Structs

VecTimer is a helper type to time functions.