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
)
                    .build(),
                ResourcePrivileges.builder("apache-2017-01")
                    .addPrivileges(
                        MapBuilder.newMapBuilder(new TreeMap<String, Boolean>())
                            .put("create_doc", true)
                            .put("create", true)
                            .put("index", true)
                            .map()
                    )
                    .build()
            )
        );
    }
    public void testCheckRestrictedIndexPatternPermission() throws Exception {
        final String patternPrefix = XPackPlugin.ASYNC_RESULTS_INDEX.substring(
            0,
            randomIntBetween(2, XPackPlugin.ASYNC_RESULTS_INDEX.length() - 2)
        );
        Role role = Role.builder(RESTRICTED_INDICES, "role")
            .add(FieldPermissions.DEFAULT, null, IndexPrivilege.INDEX, false, patternPrefix + "*")
            .build();
        RBACAuthorizationInfo authzInfo = new RBACAuthorizationInfo(role, null);
        String prePatternPrefix = patternPrefix.substring(0, randomIntBetween(1, patternPrefix.length() - 1)) + "*";
        PrivilegesCheckResult response = hasPrivileges(
            IndicesPrivileges.builder().indices(prePatternPrefix).allowRestrictedIndices(randomBoolean()).privileges("index").build(),
            authzInfo,
            Collections.emptyList(),
            Strings.EMPTY_ARRAY
        );