AWS ECS Metrics
Configuration Options
Required Options
type(required)
The component type. This is a required field for all components and tells Vector which component to use.
Type | Syntax | Default | Example |
---|---|---|---|
string | literal | ["aws_ecs_metrics"] |
Advanced Options
endpoint(optional)
Base URI of the task metadata endpoint.
If empty, the URI will be automatically discovered based on the latest version detected.
The version 2 endpoint base URI is 169.254.170.2/v2/
.
The version 3 endpoint base URI is stored in the environment variable ECS_CONTAINER_METADATA_URI
.
The version 4 endpoint base URI is stored in the environment variable ECS_CONTAINER_METADATA_URI_V4
.
Type | Syntax | Default | Example |
---|---|---|---|
string | literal | ${ECS_CONTAINER_METADATA_URI_V4} |
namespace(optional)
The namespace of the metric. Disabled if empty.
Type | Syntax | Default | Example |
---|---|---|---|
string | literal | awsecs |
scrape_interval_secs(optional)
The interval between scrapes, in seconds.
Type | Syntax | Default | Example |
---|---|---|---|
uint | 15 |
version(optional)
The version of the metadata endpoint. If empty, the version is automatically discovered based on environment variables.
Type | Syntax | Default | Example |
---|---|---|---|
string | literal | v4 |
How it Works
State
This component is stateless, meaning its behavior is consistent across each input.
Context
By default, the aws_ecs_metrics
source augments events with helpful
context keys.