admmonkit

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Overview

package admmonkit hooks up admission with monkit.v2

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Send

func Send(ctx context.Context, opts Options) (err error)

Send will push all of the metrics in the registry to the address with the application and instance id in the options.

Types

type Options

type Options struct {
	// Application to send with
	Application string

	// Instance Id to send with
	InstanceId []byte

	// Address to send packets to
	Address string

	// PacketSize controls maximum packet size. If zero, 1024 is used.
	PacketSize int

	// Registry to pull stats from. If nil, monkit.Default is used.
	Registry *monkit.Registry

	// ProtoOps allows you to set protocol options.
	ProtoOpts admproto.Options
}

Options allows you to control where and how Send sends the data.

Jump to

Keyboard shortcuts

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