datadog

package
v4.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package datadog implements a kafkametrics Handler.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(c *Config) (kafkametrics.Handler, error)

NewHandler takes a *Config and returns a Handler, along with any credential validation errors. Further backends can be supported with a type switch and some other changes.

Types

type Config

type Config struct {
	// Datadog API key.
	APIKey string
	// Datadog app key.
	AppKey string
	// NetworkTXQuery is a query string that should return the outbound
	// network metrics by host for the reference Kafka brokers.
	// Example (Datadog): "avg:system.net.bytes_sent{service:kafka} by {host}"
	NetworkTXQuery string
	// NetworkRXQuery is a query string that should return the inbound
	// network metrics by host for the reference Kafka brokers.
	// Example (Datadog): "avg:system.net.bytes_rcvd{service:kafka} by {host}"
	NetworkRXQuery string
	// BrokerIDTag is the host tag name for Kafka broker IDs.
	BrokerIDTag string
	// InstanceTypeTag is the tag name for the kafka broker's instance type.
	InstanceTypeTag string
	// MetricsWindow specifies the window size of timeseries data to evaluate
	// in seconds. All values for the window are averaged.
	MetricsWindow int
}

Config holds Handler configuration parameters.

Jump to

Keyboard shortcuts

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