List Metrics
cloudwatch.list_metrics
ActionAmazon Web Servicesconnection required
Calls the AWS cloudwatch API (SigV4).
List metrics in a namespace.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- API key
- Providers
- Amazon CloudWatch
- Secret shape
- {"access_key_id", "secret_access_key"}
- Config it needs
- region
- Resolved by
- config.connection_id, else node.connection_id
Configuration
4 fields, none required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
region AWS region (overrides the connection). | string | No | — | — | — |
namespace Filter by namespace. | string | No | — | — | — |
metric_name Filter by metric name. | string | No | — | — | — |
next_token Continue from a previous run of this node by passing that run's 'next_token' output; leave blank for the first page. | string | No | — | — | — |
Output
One shape.
result
| Field | Type | Example |
|---|---|---|
metrics | array | — |
count | number | — |
next_token Cursor for the next page; empty when there are no further pages. | string | — |
{
"count": 0,
"metrics": [],
"next_token": ""
}Related Amazon CloudWatch nodes
Solutions with Amazon CloudWatch
See List Metrics run in a workflow.
In a technical demo we add the Amazon CloudWatch connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.