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
.put("read", true)
                            .put("write", true)
                            .put("all", false)
                            .map()
                    )
                    .build(),
                ResourcePrivileges.builder("foo/bar/baz")
                    .addPrivileges(
                        MapBuilder.newMapBuilder(new LinkedHashMap<String, Boolean>())
                            .put("read", true)
                            .put("write", true)
                            .put("all", false)
                            .map()
                    )
                    .build(),
                ResourcePrivileges.builder("baz/bar/foo")
                    .addPrivileges(
                        MapBuilder.newMapBuilder(new LinkedHashMap<String, Boolean>())
                            .put("read", false)
                            .put("write", true)
                            .put("all", false)
                            .map()
                    )
                    .build()
            )
        );
    }
    public void testCheckingApplicationPrivilegesWithComplexNames() throws Exception {
        final String appName = randomAlphaOfLength(1).toLowerCase(Locale.ROOT) + randomAlphaOfLengthBetween(3, 10);
        final String action1 = randomAlphaOfLength(1).toLowerCase(Locale.ROOT) + randomAlphaOfLengthBetween(2, 5);