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
public void onFailure(Exception e) {
                Assert.fail(e.getMessage());
            }
        });
    }
    private void authorizeIndicesAction(
        final String[] indices,
        final Role role,
        final String action,
        final ParentActionAuthorization parentAuthorization,
        final ActionListener<IndexAuthorizationResult> listener
    ) {
        final RBACAuthorizationInfo authzInfo = new RBACAuthorizationInfo(role, null);
        final ResolvedIndices resolvedIndices = new ResolvedIndices(List.of(indices), List.of());
        final TransportRequest searchRequest = new SearchRequest(indices);
        final RequestInfo requestInfo = createRequestInfo(searchRequest, action, parentAuthorization);
        final AsyncSupplier<ResolvedIndices> indicesAsyncSupplier = s -> s.onResponse(resolvedIndices);
        final Map<String, IndexAbstraction> aliasOrIndexLookup = Stream.of(indices)
            .collect(
                Collectors.toMap(
                    i -> i,
                    v -> new IndexAbstraction.ConcreteIndex(IndexMetadata.builder(v).settings(indexSettings(Version.CURRENT, 1, 0)).build())
                )
            );
        engine.authorizeIndexAction(requestInfo, authzInfo, indicesAsyncSupplier, aliasOrIndexLookup, listener);
    }
    private static RequestInfo createRequestInfo(TransportRequest request, String action, ParentActionAuthorization parentAuthorization) {
        final Authentication.RealmRef realm = new Authentication.RealmRef(
            randomAlphaOfLength(6),
            randomAlphaOfLength(4),