hostmetadata

package
v0.116.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Overview

Package hostmetadata is responsible for collecting host metadata from different providers such as EC2, ECS, AWS, etc and pushing it to Datadog.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSourceProvider

func GetSourceProvider(set component.TelemetrySettings, configHostname string, timeout time.Duration) (source.Provider, error)

func NewPusher added in v0.82.0

func NewPusher(params exporter.Settings, pcfg PusherConfig) inframetadata.Pusher

NewPusher creates a new inframetadata.Pusher that pushes metadata payloads

func RunPusher added in v0.82.0

func RunPusher(ctx context.Context, params exporter.Settings, pcfg PusherConfig, p source.Provider, attrs pcommon.Map, reporter *inframetadata.Reporter)

RunPusher to push host metadata payloads from the host where the Collector is running periodically to Datadog intake. This function is blocking and it is meant to be run on a goroutine.

Types

type PusherConfig

type PusherConfig struct {
	// ConfigHosthame is the hostname set in the configuration of the exporter (empty if unset).
	ConfigHostname string
	// ConfigTags are the tags set in the configuration of the exporter (empty if unset).
	ConfigTags []string
	// MetricsEndpoint is the metrics endpoint.
	MetricsEndpoint string
	// APIKey is the API key set in configuration.
	APIKey string
	// UseResourceMetadata is the value of 'use_resource_metadata' on the top-level configuration.
	UseResourceMetadata bool
	// InsecureSkipVerify is the value of `tls.insecure_skip_verify` on the configuration.
	InsecureSkipVerify bool
	// ClientConfig of exporter.
	ClientConfig confighttp.ClientConfig
	// RetrySettings of exporter.
	RetrySettings configretry.BackOffConfig
	// ReporterPeriod is the period of the reporter goroutine.
	ReporterPeriod time.Duration
}

PusherConfig is the configuration for the metadata pusher goroutine.

Directories

Path Synopsis
internal
azure
Package azure contains the Azure hostname provider
Package azure contains the Azure hostname provider
ec2
Package ec2 contains the AWS EC2 hostname provider
Package ec2 contains the AWS EC2 hostname provider
ecs
Package ecs contains the ECS Fargate hostname provider
Package ecs contains the ECS Fargate hostname provider
gcp
Package gcp contains the GCP hostname provider
Package gcp contains the GCP hostname provider
gohai
package gohai provides system information like cpu, memory in a format that is expected by the datadog intake
package gohai provides system information like cpu, memory in a format that is expected by the datadog intake
k8s
Package k8s contains the Kubernetes hostname provider
Package k8s contains the Kubernetes hostname provider
system
Package system contains the system hostname provider
Package system contains the system hostname provider
Package provider contains the cluster name provider
Package provider contains the cluster name provider

Jump to

Keyboard shortcuts

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