Thank you very much! This wasn’t the complete solution to my problem, but let me realize a few things:
-
one can reference the metrics from A in B (in your example) via
METRICS()
, although the specific IDs are, as I mentioned, randomized -
however, this didn’t help me because i want the rate that I needs
id / PERIOD(id)
(can’t use theRATE()
function because it requires an ever increasing counter, not a gauge like CloudWatch stores…) -
but I realized that one can skip using Grafana’s UI query builder completly by using the
SEARCH()
function inExpression
from the beginning and that{{ label }}
as Alias shows the values of dimension names one gives as parameter toSEARCH
:SEARCH(' {AWS/Firehose,DeliveryStreamName} MetricName="DeliveryToS3.Records" ', 'Sum', 300) / 300
The period can probably be improved with
$__interval_ms
or such, but basically that’s how it can work -
using a single query and not one hidden and one
Expression
ed one also works around this regression in 6.2
This is all not really documented as far as I understood, which is a shame. Maybe I will create a merge request for improving the docs, but so long I hope that this thread might help others.