Monitoring data can now be stored in `metrics-*` patterns when collected through elastic-agent. [Our documentation](https://www.elastic.co/guide/en/kibana/current/monitoring-data.html) recommends to use the `monitoring_user` role to view the data in Stack Monitoring application but that role does not have permissions to read from the metrics pattern.

`monitoring_user` should be allowed the same permissions on `metrics-*` as `.monitoring-*`
x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/security/authz/store/ReservedRolesStoreTests.java
);
            }
            final String otherApplication = "logstash-" + randomAlphaOfLengthBetween(8, 24);
            assertThat(
                role.application().grants(ApplicationPrivilegeTests.createPrivilege(otherApplication, "app-foo", "foo"), "*"),
                is(false)
            );
            if (roleDescriptor.getName().equals("data_frame_transforms_admin")) {
                assertThat(
                    role.application()
                        .grants(
                            ApplicationPrivilegeTests.createPrivilege(otherApplication, "app-reserved_ml", allowedApplicationActionPattern),
                            "*"
                        ),
                    is(false)
                );
            }
        }
    }
    public void testTransformUserRole() {
        final TransportRequest request = mock(TransportRequest.class);
        final Authentication authentication = AuthenticationTestHelper.builder().build();
        RoleDescriptor[] roleDescriptors = {
            new ReservedRolesStore().roleDescriptor("data_frame_transforms_user"),
            new ReservedRolesStore().roleDescriptor("transform_user") };
        for (RoleDescriptor roleDescriptor : roleDescriptors) {
            assertNotNull(roleDescriptor);
            assertThat(roleDescriptor.getMetadata(), hasEntry("_reserved", true));
            if (roleDescriptor.getName().equals("data_frame_transforms_user")) {
                assertThat(roleDescriptor.getMetadata(), hasEntry("_deprecated", true));