monitoring

package
v0.0.0-...-bce0914 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package monitoring provides monitoring functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RPCStatsInterceptor

type RPCStatsInterceptor struct {
	// contains filtered or unexported fields
}

RPCStatsInterceptor provides a gRPC interceptor that records statistics about the RPCs passing through it.

func NewRPCStatsInterceptor

func NewRPCStatsInterceptor(timeSource util.TimeSource, application, component string) *RPCStatsInterceptor

NewRPCStatsInterceptor creates a new RPCStatsInterceptor for the given application/component, with a specified time source.

func (RPCStatsInterceptor) Interceptor

Interceptor returns a UnaryServerInterceptor that can be registered with an RPC server and will record request counts / errors and latencies for that servers handlers

func (RPCStatsInterceptor) Publish

func (r RPCStatsInterceptor) Publish()

Publish must be called for stats to be visible. The expvar framework will prevent multiple calls to Publish from succeeding.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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