How does monitoring calculate the documents per second?

I am trying to write a short command line re-index tool that lets you easily add all the options for re-indexing. I want to be able to query elastic or kibana or monitoring to tell the user how many documents per second are being re-indexed. Does anybody have any ideas on how to do this? I have tried just scraping the html off the monitoring page but that fails. I also have tried just calculating it by hand but my calculation is not the same as the monitoring output.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.