AWS CloudWatch
Prerequisites
Setup
LogicLoop connects to CloudWatch using the boto3
client. According to their documentation before you can query with LogicLoop:
[Y]ou should set up authentication credentials. Credentials for your AWS account can be found in the IAM Console. You can create or use an existing user. Go to manage access keys and generate a new set of keys.
With your access_key_id
and secret_access_key
you can set up the CloudWatch and CloudWatch Log Insights data sources.
Querying CloudWatch
These instructions assume you are familiar with the CloudWatch ad-hoc query language. To make exploring your data easier the schema browser will show which Namespaces and Metrics you can query.
Your query text must written in YAML syntax (not SQL). It should be an array of MetricDataQuery
objects under a key called MetricsDataQueries
. When you execute the query LogicLoop converts this array to one or more get_metric_data()
calls.
Here’s an example that sends two MetricDataQuery
objects.
To query your CloudWatch data with SQL, first pull data using the YAML syntax. Then use the Query Results datasource to filter and sort the results
Helpful Links
To learn more about the CloudWatch ad-hoc query language you can study the following links.
Querying CloudWatch Logs Insights
These instructions assume you are familiar with the CloudWatch Logs Insights ad-hoc query language. To make exploring your data easier the schema browser will show which Log Groups and @Fields you can query. Your query text must be written in YAML Syntax (not SQL). Your query can include the following keys:
Your query must include either a logGroupName
or logGroupNames
. When you execute the query LogicLoop converts this object into a start_query()
call. Here is an example query:
Helpful Links
Last updated