admmonkit

package
v3.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: Apache-2.0 Imports: 6 Imported by: 1

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

	// Headers allow you to set arbitrary key/value pairs to be included in each packet send
	Headers map[string]string
}

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