I am looking for a way to filter by dimensions and include their name in mstats result so that down the line I can have charts per metric and dimension. What is the way of referencing custom dimensions?
Can you provide some sample data?
I'm not really sure what you want to accomplish directly.
But if you use mstats like this:
| mstats latest(_value) AS last_value WHERE index="my_metrics" metric_name="*" by custom_dimension, metric_name
You are able to use metricname as well as the customdimension field after this command. As well as metric_name and the values of all the metrics.
hope that helps.