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/security/src/test/java/org/elasticsearch/xpack/security/authz/RBACEngineTests.java
ResourcePrivileges.builder("space/*").addPrivileges(Collections.singletonMap("space:view/dashboard", false)).build()
            )
        );
    }
    public void testCheckingIndexPermissionsDefinedOnDifferentPatterns() throws Exception {
        final RBACAuthorizationInfo authzInfo = new RBACAuthorizationInfo(
            Role.builder(RESTRICTED_INDICES, "test-multiple")
                .add(IndexPrivilege.CREATE_DOC, "*")
                .add(IndexPrivilege.INDEX, "apache-*", "unrelated", "something_else*")
                .add(IndexPrivilege.DELETE, "apache-2016-*", ".security*")
                .build(),
            null
        );
        List<String> indices = new ArrayList<>(3);
        indices.add("apache-2016-12");
        indices.add("apache-2017-01");
        indices.add("other");
        Collections.shuffle(indices, random());
        List<String> privileges = new ArrayList<>(3);
        privileges.add("create_doc");
        privileges.add("index");
        privileges.add("delete");
        Collections.shuffle(privileges, random());
        PrivilegesCheckResult response = hasPrivileges(
            IndicesPrivileges.builder().indices(indices).privileges(privileges).allowRestrictedIndices(randomBoolean()).build(),
            authzInfo,
            Collections.emptyList(),
            Strings.EMPTY_ARRAY
        );
        assertThat(response.allChecksSuccess(), is(false));