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
null,
                            null,
                            null,
                            null,
                            null
                        )
                    )
                )
            );
        }
    }
    public void testChildSearchActionAuthorizationIsSkipped() {
        final String[] indices = { "test-index" };
        final Role role = Mockito.spy(Role.builder(RESTRICTED_INDICES, "test-role").add(IndexPrivilege.READ, indices).build());
        final String action = randomFrom(PreAuthorizationUtils.CHILD_ACTIONS_PRE_AUTHORIZED_BY_PARENT.get(SearchAction.NAME));
        final ParentActionAuthorization parentAuthorization = new ParentActionAuthorization(SearchAction.NAME);
        authorizeIndicesAction(indices, role, action, parentAuthorization, new ActionListener<IndexAuthorizationResult>() {
            @Override
            public void onResponse(IndexAuthorizationResult indexAuthorizationResult) {
                assertTrue(indexAuthorizationResult.isGranted());
                
                Mockito.verify(role, never()).checkIndicesAction(action);
                Mockito.verify(role, never()).authorize(eq(action), any(), any(), any());
            }
            @Override
            public void onFailure(Exception e) {
                Assert.fail(e.getMessage());
            }
        });
    }