ecs

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeStr = "ecs"
)

Variables

This section is empty.

Functions

Types

type Container

type Container struct {
	DockerID     string `json:"DockerId"`
	ContainerARN string
	Type         string
	KnownStatus  string
	LogDriver    string
	LogOptions   LogData
}

type Detector

type Detector struct {
	// contains filtered or unexported fields
}

func (*Detector) Detect

func (d *Detector) Detect(context.Context) (pdata.Resource, error)

Records metadata retrieved from the ECS Task Metadata Endpoint (TMDE) as resource attributes TODO(willarmiros): Replace all attribute fields and enums with values defined in "conventions" once they exist

type HTTPClient

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
}

type LogData

type LogData struct {
	LogGroup string `json:"awslogs-group"`
	Region   string `json:"awslogs-region"`
	Stream   string `json:"awslogs-stream"`
}

type TaskMetaData

type TaskMetaData struct {
	Cluster          string
	LaunchType       string // TODO: Change to enum when defined in otel collector convent
	TaskARN          string
	Family           string
	AvailabilityZone string
	Revision         string
	Containers       []Container
}

Jump to

Keyboard shortcuts

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