OpenTelemetry Bot d680729c09 [chore] Prepare release 0.90.0 (#29543) | 1 년 전 | |
---|---|---|
.. | ||
internal | 1 년 전 | |
testdata | 1 년 전 | |
Makefile | 2 년 전 | |
README.md | 1 년 전 | |
config.go | 1 년 전 | |
config_test.go | 1 년 전 | |
docs.go | 1 년 전 | |
factory.go | 1 년 전 | |
factory_test.go | 1 년 전 | |
go.mod | 1 년 전 | |
go.sum | 1 년 전 | |
integration_test.go | 1 년 전 | |
logs.go | 1 년 전 | |
logs_test.go | 1 년 전 | |
metadata.yaml | 1 년 전 |
Status | |
---|---|
Stability | alpha: logs |
Distributions | contrib, observiq, sumo |
Issues | |
Code Owners | @djaglowski, @schmikei |
Receives Cloudwatch events from AWS Cloudwatch via the AWS SDK for Cloudwatch Logs
This receiver uses the AWS SDK as mode of authentication, which includes Credentials File and IMDS authentication for EC2 instances.
Parameter | Notes | type | Description |
---|---|---|---|
region |
required | string | The AWS recognized region string |
profile |
optional | string | The AWS profile used to authenticate, if none is specified the default is chosen from the list of profiles |
imds_endpoint |
optional | string | A way of specifying a custom URL to be used by the EC2 IMDS client to validate the session. If unset, and the environment variable AWS_EC2_METADATA_SERVICE_ENDPOINT has a value the client will use the value of the environment variable as the endpoint for operation calls. |
logs |
optional | Logs |
Configuration for Logs ingestion of this receiver |
Parameter | Notes | type | Description |
---|---|---|---|
poll_interval |
default=1m |
duration | The duration waiting in between requests. |
max_events_per_request |
default=50 |
int | The maximum number of events to process per request to Cloudwatch |
groups |
optional | See Group Parameters |
Configuration for Log Groups, by default all Log Groups and Log Streams will be collected. |
autodiscover
and named
are ways to control and filter which log groups and log streams which are collected from. They are mutually exclusive and are incompatible to be configured at the same time.
autodiscover
limit
: (optional; default = 50) Limits the number of discovered log groups. This does not limit how large each API call to discover the log groups will be.prefix
: (optional) A prefix for log groups to limit the number of log groups discovered.streams
: (optional) If streams
is omitted, then all streams will be attempted to retrieve events from.names
: A list of full log stream names to filter the discovered log groups to collect from.prefixes
: A list of prefixes to filter the discovered log groups to collect from.named
streams
: (optional)
names
: A list of full log stream names to filter the discovered log groups to collect from.prefixes
: A list of prefixes to filter the discovered log groups to collect from.awscloudwatch:
region: us-west-1
logs:
poll_interval: 1m
groups:
autodiscover:
limit: 100
prefix: /aws/eks/
streams:
prefixes: [kube-api-controller]
awscloudwatch:
region: us-west-1
logs:
poll_interval: 5m
groups:
named:
/aws/eks/dev-0/cluster:
names: [kube-apiserver-ea9c831555adca1815ae04b87661klasdj]
This receiver has a number of sample configs for reference.
Autodiscover Filtering Log Groups
Autodiscover Filtering Log Streams
Named Groups Filter Log Streams