Daniel Jaglowski 40b485f08a Update core for v0.90.0 release (#29539) | 1 éve | |
---|---|---|
.. | ||
internal | 1 éve | |
Makefile | 1 éve | |
README.md | 1 éve | |
config.go | 1 éve | |
config_test.go | 1 éve | |
docs.go | 1 éve | |
factory.go | 1 éve | |
factory_test.go | 1 éve | |
go.mod | 1 éve | |
go.sum | 1 éve | |
metadata.yaml | 1 éve | |
receiver.go | 1 éve | |
receiver_test.go | 1 éve |
Status | |
---|---|
Stability | development: metrics |
Distributions | contrib |
Issues | |
Code Owners | @jpkrohling |
Receives Cloudwatch metrics from AWS Cloudwatch via the AWS SDK for Cloudwatch Logs
This receiver uses the AWS SDK as mode of authentication, which includes Profile 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 |
IMDSEndpoint |
optional | string | The IMDS endpoint to authenticate to AWS |
poll_interval |
default=1m |
duration | The duration waiting in between requests |
metrics |
optional | Metrics |
Configuration for metrics ingestion of this receiver |
Parameter | Notes | type | Description |
---|---|---|---|
named |
required | See Named Parameters |
Configuration for Named Metrics, by default no metrics are collected |
Parameter | Notes | type | Description |
---|---|---|---|
namespace |
required | string |
AWS Metric namespace, all AWS namespaces are prefixed with AWS , eg: AWS/EC2 for EC2 metrics |
metric_name |
required | string |
AWS metric name |
period |
default=5m |
duration | Aggregation period |
aws_aggregation |
default=sum |
string | type of AWS aggregation, eg: sum, min, max, average |
dimensions |
optional | see Dimensions Parameters |
Configuration for metric dimensions |
Parameter | Notes | type | Description |
---|---|---|---|
name |
required | string |
Dimensions name, can't start with a colon |
value |
required | string |
Dimension value |
awscloudwatchmetrics:
region: us-east-1
poll_interval: 1m
metrics:
named:
- namespace: "AWS/EC2"
metric_name: "CPUUtilization"
period: "5m"
aws_aggregation: "Sum"
dimensions:
- Name: "InstanceId"
Value: "i-1234567890abcdef0"
- namespace: "AWS/S3"
metric_name: "BucketSizeBytes"
period: "5m"
aws_aggregation: "p99"
dimensions:
- Name: "BucketName"
Value: "OpenTelemetry"
- Name: "StorageType"
Value: "StandardStorage"
receivers:
awscloudwatchmetrics:
region: eu-west-1
poll_interval: 10m
metrics:
named:
- namespace: "AWS/EC2"
metric_name: "CPUUtilization"
period: "5m"
aws_aggregation: "Sum"
dimensions:
- Name: "InstanceId"
Value: "i-035e091c31292427a"
processors:
exporters:
debug:
verbosity: detailed
service:
pipelines:
metrics:
receivers: [awscloudwatchmetrics]
processors: []
exporters: [debug]
This receiver uses the GetMetricData API call, this call is not in the AWS free tier. Please refer to Amazon's pricing for further information about expected costs.
Try a bigger poll_interval
. CloudWatch returns no data if the period of the metric, by default for AWS supplied metrics, it's 300 seconds (5 minutes). Try out a period of 600 seconds and a poll interval of 600 seconds.
Make sure your IAM role/user has the required permissions:
"cloudwatch:GetMetricData",
"cloudwatch:GetMetricStatistics",
"cloudwatch:ListMetrics"
The following IAM permissions are required for transit gateways to work:
"ec2:DescribeTags",
"ec2:DescribeInstances",
"ec2:DescribeRegions",
"ec2:DescribeTransitGateway*"