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 ¶
- func GetSourceProvider(set component.TelemetrySettings, configHostname string, timeout time.Duration) (source.Provider, error)
- func NewPusher(params exporter.Settings, pcfg PusherConfig) inframetadata.Pusher
- func RunPusher(ctx context.Context, params exporter.Settings, pcfg PusherConfig, ...)
- type PusherConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSourceProvider ¶
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 }
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 |
Click to show internal directories.
Click to hide internal directories.