Hi,
I'm trying to calculate the Indexing rate for our cluster using the API. I'm basically trying to replicate the data from the "Monitoring" graphs for our external alerting system. As you can see these are showing an indexing rate of ~3k per second
A similar question has been asked before so following the advise here I have ran the following:
GET _stats?pretty:
"indexing" : {
"index_total" : 1791502388,
"index_time_in_millis" : 1339241001,
"index_current" : 0,
"index_failed" : 1,
"delete_total" : 9883899,
"delete_time_in_millis" : 681911,
"delete_current" : 0,
"noop_update_total" : 0,
"is_throttled" : false,
"throttle_time_in_millis" : 0
},
Wait 60 seconds then re-run:
"indexing" : {
"index_total" : 1791564251,
"index_time_in_millis" : 1339278670,
"index_current" : 0,
"index_failed" : 1,
"delete_total" : 9883899,
"delete_time_in_millis" : 681911,
"delete_current" : 0,
"noop_update_total" : 0,
"is_throttled" : false,
"throttle_time_in_millis" : 0
}
Using the calculations given in the above linked answer I get an Indexing rate of 1031/s (1791564251-1791502388)/60
How can I get the same numbers from the graphs above using the API? Is this even possible?