Hi, I asked a very similar question yesterday in regard to exposing Elasticsearch Indexing Rate via the API. Thanks to @danielmitterdorfer this was achieved easily.
I'm now trying to get other monitoring metrics via the Elasticsearch API, specifically the Indexing Latency. I'll also be looking into Search Rate and Search Latency too.
I've read an article online that suggests this is achievable using index_total and index_time_in_millis although doesn't say how to achieve this with these metrics. Can anybody assist wit this please?
Which roughly matches what we are seeing in Kibana for the indexing latency in ms. So the above gives us a rough indication of the last 5 seconds indexing latency. Changing the "sleep" duration will change the time bucket interval.
I'm going to go ahead and mark this as the accepted solution unless someone offers an alternative
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.