Welcome to the forum and thanks for your excellent question.
You are right, currently only the queries made with the rest client are monitored. There are no immediate plans to instrument Elasticsearch itself with the APM Java agent.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.