datadogreceiver

package module
v0.0.0-...-70c4d32 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: Apache-2.0 Imports: 41 Imported by: 0

README

chqdatadog receiver

This is a fork of the standard datadog receiver to make it easier to use in a multi-pod environment as well as ensure that the incoming telemtry is converted to semantic OTEL attributes.

This may eventually be submitted as a change request. Documentation on this component is limited as its primary use case is intended to be in the Cardinal collector ecosystem.

Documentation

Index

Constants

View Source
const (
	GoFatalError    = "fatal error:"
	GoPanic         = "panic:"
	PythonTraceBack = "Traceback "
)

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() receiver.Factory

NewFactory creates a factory for DataDog receiver.

Types

type Config

type Config struct {
	confighttp.ServerConfig `mapstructure:",squash"`
	// ReadTimeout of the http server
	ReadTimeout       time.Duration `mapstructure:"read_timeout"`
	TagcacheExtension *component.ID `mapstructure:"tagcache_extension"`
}

func (*Config) Validate

func (cfg *Config) Validate() error

Validate checks the receiver configuration is valid

type DDError

type DDError struct {
	Detail string `json:"detail"`
	Status string `json:"status"`
	Title  string `json:"title"`
}

type DDErrorWrapper

type DDErrorWrapper struct {
	Errors []DDError `json:"errors"`
}

type DDLog

type DDLog struct {
	DDSource string `json:"ddsource,omitempty"`
	DDTags   string `json:"ddtags,omitempty"`
	Message  string `json:"message,omitempty"`
	Hostname string `json:"hostname,omitempty"`
	Service  string `json:"service,omitempty"`
}

type Message

type Message struct {
	Timestamp pcommon.Timestamp
	Body      string
}

type MetricsPayloadV1

type MetricsPayloadV1 struct {
	Series []SeriesV1 `json:"series"`
}

MetricsPayloadV1 is for the /api/v1/series endpoint.

type SeriesV1

type SeriesV1 struct {
	Host     *string                    `json:"host,omitempty"`
	Interval *int64                     `json:"interval,omitempty"`
	Metric   string                     `json:"metric"`
	Points   []tuple.T2[int64, float64] `json:"points"`
	Tags     []string                   `json:"tags,omitempty"`
	Type     *string                    `json:"type,omitempty"`
}

SeriesV1 is for the /api/v1/series endpoint.

Directories

Path Synopsis
internal
sharedcomponent
Package sharedcomponent exposes util functionality for receivers and exporters that need to share state between different signal types instances such as net.Listener or os.File.
Package sharedcomponent exposes util functionality for receivers and exporters that need to share state between different signal types instances such as net.Listener or os.File.

Jump to

Keyboard shortcuts

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