We are running some containerized Java applications on AKS. We added the Application Insights Java Agent to the Pod and provide the role via APPLICATIONINSIGHTS_ROLE_NAME.
Custom metrics are visible, and the different applications show up with their role name on the application map.
However, we are unable to filter custom metrics, including common JVM metrics, by role or apply splitting by role:

When I look at the logs, I see cloud_RoleName and cloud_RoleInstance populated. The Application Insights standard system metrics like "Server requests" can be filtered / grouped by role instance or role, so this seems to be working.
Is filtering and grouping by Cluster Role / Cluster Role Instance generally supposed to work for the metrics collected by the Java agent? If so, how can I check what we are doing wrong?


