22 Jul 2025
01:15 PM
- last edited on
22 Jul 2025
01:17 PM
by
AgataWlodarczyk
Hi all,
I am creating a Dynatrace dashboard for which I need data from a particular cluster, I am currently using AWS Container Insight metrics in Dynatrace data explorer, specifically metrics like:
ext:cloud.aws.containerinsights.pod_cpu_reserved_capacityByNamespacePodName:splitBy(Namespace):sort(value(auto,descending)):limit(20)
My goal is to filter these metrics to show data only from one specific cluster. However, when I try using filter expressions like:
:filter(eq("ClusterName","my-cluster")), i get the error :
The Dimension key 'ClusterName ' (or 'clusterId') has been referenced, but the metrics have no such key.
I have also inspected the available dimensions for this metric using splitBy(), and I don't see any cluster-level dimensions exposed.
My Questions:
1. Is there a version of these Container Insights metrics that includes a cluster name or similar dimension?
2. If not, how can I reliably filter these metrics per cluster?
I'd appreciate any help or examples from those who've dealt with this limitation. Also, I want to alias this metric, but I am not able to figure it out.
Thanks!
22 Jul 2025 04:52 PM
I noticed you posted this thread in the DQL section of the forum.. Are you open to using a DQL query in a Notebook or Dashboard for this task? The reason I ask is because DQL offers additional flexibility compared to metric selector expressions, enabling multi-step queries to add fields (including entity attributes and relationships) or conduct further filtering.
23 Jul 2025 07:57 AM - edited 23 Jul 2025 08:02 AM
Yes, i am writing the metric dql in Data Explorer of Dynatrace dashboard, i have limitation to use only the same. Please check the screenshot for clarity. If anything can be done to alias the metric expression and filter the data at cluster level in a single statement, that is needed or if any alternate approach to get expected results.