Visualizations are created from indexed data, but you want to render results from an Elasticsearch API so I'm afraid there is not a direct way to do this. You would need to set up a separate process to collect those stats, and insert them on a regular index.
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.