In dashboards we often use the graph search
functionality to catch all functions that have part-of-function-name
in their function name.
{
"metrics": [
[ { "expression": "SEARCH('{AWS/Lambda,FunctionName} part-of-function-name Duration', 'p90', 86400)", "id": "e1", "region": "eu-west-1" } ]
],
"view": "bar",
"region": "eu-west-1",
"stat": "Average",
"period": 300
}
Can you use something similar in the aws cli? How? I was looking at the below command but don't know where to put it.
aws cloudwatch get-metric-statistics --metric-name Duration \
--start-time 2014-04-08T23:18:00Z \
--end-time 2014-04-09T23:18:00Z \
--period 3600 --namespace AWS/Lambda --statistics p90