metrics

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DBError

func DBError(op string)

DBError increments a counter for a db error operation.

func EventStoreLatency

func EventStoreLatency(op string, start time.Time)

EventStoreLatency records eventstore latency for a named op.

func GRPCFailure

func GRPCFailure(method string)

GRPCFailure counts failed gPRC calls by method.

func GRPCLatency

func GRPCLatency(method string, start time.Time)

GRPCLatency records grpc request latency for a named method.

func GRPCSuccess

func GRPCSuccess(method string)

GRPCSuccess counts successful gPRC calls by method.

func HTTPLatency

func HTTPLatency(path string, start time.Time)

HTTPLatency records a request latency for a given url path.

func HTTPStatus

func HTTPStatus(path string, status int)

HTTPStatus records counts of http statuses, bucketed according to status types.

func RegisterPromMetrics

func RegisterPromMetrics() error

RegisterPromMetrics registers all the metrics that eventmanger uses.

func RsyslogLatency

func RsyslogLatency(start time.Time)

RsyslogLatency records rsyslog latency.

Types

This section is empty.

Jump to

Keyboard shortcuts

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