Skip to main content

Configuration

The AWS FireLens Rotel integration is configured using the same environment variables documented for Rotel, documented here.

Environment Variables Set by Launcher

The Go launcher automatically sets these environment variables based on the Fluent Bit configuration that AWS FireLens provides:

VariableDescriptionExample
ROTEL_FLUENT_RECEIVER_ENDPOINTTCP endpoint for Fluent Bit forward protocol127.0.0.1:24224
ROTEL_FLUENT_RECEIVER_SOCKET_PATHUnix socket path for Fluent Bit forward protocol/var/run/fluent.sock
ROTEL_OTEL_RESOURCE_ATTRIBUTESResource attributes from ECS attributesecs_cluster=prod,ecs_task_arn=arn:aws:...

These variables are automatically configured by the launcher, so you don't need to set them manually.

Exporter Configuration

Configure your preferred exporter using environment variables on the log_router container in your ECS task definition.

Example: ClickHouse

{
"name": "log_router",
"image": "streamfold/aws-firelens-rotel:latest",
"firelensConfiguration": {
"type": "fluentbit"
},
"environment": [
{
"name": "ROTEL_CLICKHOUSE_EXPORTER_ENDPOINT",
"value": "https://xxxx.us-east-1.aws.clickhouse.cloud:8443"
},
{
"name": "ROTEL_CLICKHOUSE_EXPORTER_USER",
"value": "default"
},
{
"name": "ROTEL_CLICKHOUSE_EXPORTER_PASSWORD",
"value": "my-password"
},
{
"name": "ROTEL_EXPORTER",
"value": "clickhouse"
}
]
}

Example: OTLP (Generic)

{
"name": "log_router",
"image": "streamfold/aws-firelens-rotel:latest",
"firelensConfiguration": {
"type": "fluentbit"
},
"environment": [
{
"name": "ROTEL_OTLP_EXPORTER_ENDPOINT",
"value": "https://api.honeycomb.io"
},
{
"name": "ROTEL_OTLP_EXPORTER_PROTOCOL",
"value": "http"
},
{
"name": "ROTEL_OTLP_EXPORTER_CUSTOM_HEADERS",
"value": "x-honeycomb-team=your-api-key"
},
{
"name": "ROTEL_EXPORTER",
"value": "otlp"
}
]
}

Using AWS Secrets Manager

For sensitive configuration values like passwords and API keys, use AWS Secrets Manager with ECS:

{
"name": "log_router",
"image": "streamfold/aws-firelens-rotel:latest",
"firelensConfiguration": {
"type": "fluentbit"
},
"secrets": [
{
"name": "ROTEL_CLICKHOUSE_EXPORTER_PASSWORD",
"valueFrom": "arn:aws:secretsmanager:us-east-1:123456789:secret:clickhouse-password-abc123"
}
],
"environment": [
{
"name": "ROTEL_CLICKHOUSE_EXPORTER_ENDPOINT",
"value": "https://xxxx.us-east-1.aws.clickhouse.cloud:8443"
},
{
"name": "ROTEL_CLICKHOUSE_EXPORTER_USER",
"value": "default"
},
{
"name": "ROTEL_EXPORTER",
"value": "clickhouse"
}
]
}
tip

Make sure your ECS task execution role has permissions to access the secrets in AWS Secrets Manager.