AWS CloudWatch source
Consumes events from AWS CloudWatch Metrics.
With tmctl
:
Work in progress
This component is not yet available with tmctl
.
On Kubernetes:
apiVersion: sources.triggermesh.io/v1alpha1
kind: AWSCloudWatchSource
metadata:
name: sample
spec:
region: us-west-2
pollingInterval: 2m
metricQueries:
- name: testquery
metric:
period: 60
stat: p90
unit: Milliseconds
metric:
metricName: Duration
namespace: AWS/Lambda
dimensions:
- name: FunctionName
value: lambdadumper
auth:
credentials:
accessKeyID:
valueFromSecret:
name: awscreds
key: aws_access_key_id
secretAccessKey:
valueFromSecret:
name: awscreds
key: aws_secret_access_key
sink:
ref:
apiVersion: eventing.triggermesh.io/v1alpha1
kind: RedisBroker
name: triggermesh
Alternatively you can use an IAM role for authentication instead of an access key and secret, for Amazon EKS only:
For details on authenticating with AWS, please take a look at our dedicated guide on AWS credentials.
Events produced have the following attributes:
- type
com.amazon.cloudwatch.metrics.message
- Schema of the
data
attribute: com.amazon.cloudwatch.metrics.message.json
- Schema of the
- type
com.amazon.cloudwatch.metrics.metric
- Schema of the
data
attribute: com.amazon.cloudwatch.metrics.metric.json
- Schema of the
See the Kubernetes object reference for more details.