Hi Team,
I am trying to implement a dashboard with single panel. The panel has 2 queries. one with cloudwatch metrics and second the cloudwatch logs(with the query from log group as
filter @message like /error/
| stats count(*) as exceptionCount by bin(1h)
| sort exceptionCount desc")
but the panel able to show only metrics. only if i hide the metrics query, the cloudwatch logs query shown. Is this kind of mix supported of course both queries return numeric value?
Yes, but you need to “merge” two results into one - use suitable transformation (only you know what is acceptable result, so I can’t recommend exact transformation type)
Thanks for the reply. But in transformations i am not able to see my cloudwatch logs query at all.
My query 1: Cloudwatch metrics: namespace: aws/lambda, metrics : invocations, statistics: Sum
My query 2: Cloudwatch logs: 1 Log group selected, Query:
filter @message like /error/
| stats count(*) as exceptionCount by bin(1h)
| sort exceptionCount desc")
I am plugging both queries in the single panel but either one of them coming at a time. In order to display other i have to hide one.
The expected result is i want to see the number of invocations of lambda and number of particular error in the log group together in the dashboard
So why you are not using 2 different panels, when you want to see them in single dashboard?
Already the dashboard has multiple panels. The customer wants to see it as a comparison in the single panel itself. The question is, first the mix is possible (as i am not even seeing both in trasformation) or is it something wrong with the incompatible query in cloudwatch log with Metrics so cannot be shown together?