prometheus

package
v0.0.0-...-7baeb4b Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler() http.Handler

Handler returns an http.Handler which should be attached to a "/metrics" endpoint for Prometheus to ingest.

func RecordRequestReceived

func RecordRequestReceived()

RecordRequestReceived increments the Prometheus counter for incoming requests.

func RecordRequestSent

func RecordRequestSent(destinationService string, size uint64)

RecordRequestSent increments the Prometheus counter for outgoing requests and records an outgoing request size.

func RecordResponseSent

func RecordResponseSent(duration time.Duration, size uint64, code int)

RecordResponseSent observes the time-to-response duration and size for the HTTP status code.

Types

This section is empty.

Jump to

Keyboard shortcuts

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