I'm trying to set up a CloudWatch graph using SEARCH, I've done some before, but I can't get it to work the way I want this time. My issue is that I want to include only some of the metric dimensions in the graph. I can search just the namespace and metric, like this:
SEARCH('Namespace="MyServiceName" MetricName="LatencyFromCreation"', 'Average', 300)
That aggregates, but that doesn't give me any dimensions. I can include all the dimensions this:
SEARCH('{MyServiceName,ResultState,ItemType,LogGroup,ServiceName,ServiceType} LatencyFromCreation', 'Average', 300)
That doesn't do any aggregation, it shows me every combination of dimensions. But when I try to remove some of them (as described in the docs and shown in examples) to keep only the dimensions that I'm interested in, like this:
SEARCH('{MyServiceName,ItemType} LatencyFromCreation', 'Average', 300)
I get no results, even though the docs seem to make it clear that this should work, am I missing something? Are the docs inaccurate?
I found this question which is related, but the answer that mentions using SEARCH does not make it clear if they are displaying a subset of the dimensions or not.