package
0.0.0-20240115213952-fb5aed7bfded
Repository: https://github.com/crystalix007/go-graphite.git
Documentation: pkg.go.dev

# Functions

NewClient creates a new Graphite client.
WithAddress sets the address of the Graphite server.
WithConnection sets the connection to use when sending metrics to the Graphite server.
WithMaxBufferSize sets the maximum number of metrics to buffer before sending them to the Graphite server.
WithMaxMetricsPerMessage sets the maximum number of metrics to send to the Graphite server in a single request.
WithMaxTries sets the maximum number of times to retry sending metrics to the Graphite server.

# Constants

DefaultMaxBufferSize is the default maximum number of metrics to buffer before sending them to the Graphite server.
DefaultMaxMetricsPerMessage is the default maximum number of metrics to send to the Graphite server in a single request.
DefaultMaxTries is the default maximum number of times to try sending metrics to the Graphite server.

# Variables

ErrNoAddress is returned when no server address is specified for the Graphite client.

# Structs

Metric represents a metric that has been queued for sending to the Graphite server.
MetricMetadata represents a metric that can be sent to a Graphite server.

# Interfaces

Client is the interface defining a Graphite client.

# Type aliases

ClientOption represents an option that can be set on the Graphite client.