datadog_config

package
v1.4.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatadogAPIArguments

type DatadogAPIArguments struct {
	Key              alloytypes.Secret `alloy:"api_key,attr"`
	Site             string            `alloy:"site,attr,optional"` // Default value of exporter is "datadoghq.com"
	FailOnInvalidKey bool              `alloy:"fail_on_invalid_key,attr,optional"`
}

DatadogAPISettings holds the configuration settings for the Datadog API.

func (*DatadogAPIArguments) Convert

Convert converts args into the upstream type.

func (*DatadogAPIArguments) SetToDefault

func (args *DatadogAPIArguments) SetToDefault()

type DatadogClientArguments

type DatadogClientArguments struct {
	ReadBufferSize      int            `alloy:"read_buffer_size,attr,optional"`
	WriteBufferSize     int            `alloy:"write_buffer_size,attr,optional"`
	Timeout             time.Duration  `alloy:"timeout,attr,optional"`
	MaxIdleConns        *int           `alloy:"max_idle_conns,attr,optional"`
	MaxIdleConnsPerHost *int           `alloy:"max_idle_conns_per_host,attr,optional"`
	MaxConnsPerHost     *int           `alloy:"max_conns_per_host,attr,optional"`
	IdleConnTimeout     *time.Duration `alloy:"idle_conn_timeout,attr,optional"`
	DisableKeepAlives   bool           `alloy:"disable_keep_alives,attr,optional"`
	InsecureSkipVerify  bool           `alloy:"insecure_skip_verify,attr,optional"`
}

DatadogClientArguments holds the configuration settings for the Datadog client. Datadog Exporter only supports InsecureSkipVerify for TLS configuration. https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/v0.105.0/exporter/datadogexporter/examples/collector.yaml#L219

func (*DatadogClientArguments) Convert

func (*DatadogClientArguments) SetToDefault

func (args *DatadogClientArguments) SetToDefault()

type DatadogHistogramArguments

type DatadogHistogramArguments struct {
	Mode             string `alloy:"mode,attr,optional"`
	SendAggregations bool   `alloy:"send_aggregation_metrics,attr,optional"`
}

HistogramConfig holds Histogram specific configuration settings

func (*DatadogHistogramArguments) Convert

func (*DatadogHistogramArguments) SetToDefault

func (args *DatadogHistogramArguments) SetToDefault()

type DatadogHostMetadataArguments

type DatadogHostMetadataArguments struct {
	Enabled        bool     `alloy:"enabled,attr,optional"`
	HostnameSource string   `alloy:"hostname_source,attr,optional"`
	Tags           []string `alloy:"tags,attr,optional"`
}

HostMetadataConfig holds information used for populating the infrastructure list, the host map and providing host tags functionality within the Datadog app. see https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/v0.102.0/exporter/datadogexporter/config.go#L391 for more

func (*DatadogHostMetadataArguments) Convert

Convert converts args into the upstream type.

func (*DatadogHostMetadataArguments) SetToDefault

func (args *DatadogHostMetadataArguments) SetToDefault()

type DatadogMetricsArguments

type DatadogMetricsArguments struct {
	DeltaTTL       int64                           `alloy:"delta_ttl,attr,optional"`
	Endpoint       string                          `alloy:"endpoint,attr,optional"`
	ExporterConfig DatadogMetricsExporterArguments `alloy:"exporter,block,optional"`
	HistConfig     DatadogHistogramArguments       `alloy:"histograms,block,optional"`
	SumConfig      DatadogSumArguments             `alloy:"sums,block,optional"`
	SummaryConfig  DatadogSummaryArguments         `alloy:"summaries,block,optional"`
}

DatadogMetricsArguments holds the configuration settings for the Datadog metrics exporter

func (*DatadogMetricsArguments) Convert

func (*DatadogMetricsArguments) SetToDefault

func (args *DatadogMetricsArguments) SetToDefault()

type DatadogMetricsExporterArguments

type DatadogMetricsExporterArguments struct {
	ResourceAttributesAsTags           bool `alloy:"resource_attributes_as_tags,attr,optional"`
	InstrumentationScopeMetadataAsTags bool `alloy:"instrumentation_scope_metadata_as_tags,attr,optional"`
}

DatadogMetricsExporterArguments holds the configuration settings for the Datadog metrics exporter

func (*DatadogMetricsExporterArguments) Convert

func (*DatadogMetricsExporterArguments) SetToDefault

func (args *DatadogMetricsExporterArguments) SetToDefault()

type DatadogSumArguments

type DatadogSumArguments struct {
	CumulativeMonotonicMode        string `alloy:"cumulative_monotonic_mode,attr,optional"`
	InitialCumulativeMonotonicMode string `alloy:"initial_cumulative_monotonic_value,attr,optional"`
}

SumConfig holds Sum specific configuration settings

func (*DatadogSumArguments) Convert

Convert converts args into the upstream type.

func (*DatadogSumArguments) SetToDefault

func (args *DatadogSumArguments) SetToDefault()

type DatadogSummaryArguments

type DatadogSummaryArguments struct {
	Mode string `alloy:"mode,attr,optional"`
}

SummaryConfig holds Summary specific configuration settings

func (*DatadogSummaryArguments) Convert

Convert converts args into the upstream type.

func (*DatadogSummaryArguments) SetToDefault

func (args *DatadogSummaryArguments) SetToDefault()

type DatadogTracesArguments

type DatadogTracesArguments struct {
	Endpoint                  string            `alloy:"endpoint,attr,optional"`
	IgnoreResources           []string          `alloy:"ignore_resources,attr,optional"`
	SpanNameRemappings        map[string]string `alloy:"span_name_remappings,attr,optional"`
	SpanNameAsResourceName    bool              `alloy:"span_name_as_resource_name,attr,optional"`
	ComputeStatsBySpanKind    bool              `alloy:"compute_stats_by_span_kind,attr,optional"`
	ComputeTopLevelBySpanKind bool              `alloy:"compute_top_level_by_span_kind,attr,optional"`
	PeerTagsAggregation       bool              `alloy:"peer_tags_aggregation,attr,optional"`
	PeerTags                  []string          `alloy:"peer_tags,attr,optional"`
	TraceBuffer               int               `alloy:"trace_buffer,attr,optional"`
}

TracesConfig holds the configuration settings for the Datadog trace exporter See https://pkg.go.dev/github.com/open-telemetry/opentelemetry-collector-contrib/exporter/datadogexporter#TracesConfig for more

func (*DatadogTracesArguments) Convert

func (args *DatadogTracesArguments) Convert(endpoint string) *datadogexporter.TracesConfig

func (*DatadogTracesArguments) SetToDefault

func (args *DatadogTracesArguments) SetToDefault()

Jump to

Keyboard shortcuts

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