metrics

package
v0.0.0-...-d69904b Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package metrics provides an HTTP handler which registers counters for the number of requests received and responses sent as well as quantiles of the latency of responses.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wrap

func Wrap(h http.Handler) http.Handler

Wrap returns a handler which records the number of requests received and responses sent to the given handler, as well as latency quantiles for responses over a five-minute window.

These counters are published as the following metrics:

HTTP.Requests
HTTP.Responses
HTTP.Latency.{P50,P75,P90,P95,P99,P999}

By tracking incoming requests and outgoing responses, one can monitor not only the requests per second, but also the number of requests being processed at any given point in time.

Types

This section is empty.

Jump to

Keyboard shortcuts

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