See https://github.com/elastic/elasticsearch/pull/51364 for more info on how to do this. This API should return basic statistics and settings that affect those statistics. I think the `GetDatafeedsStatsAction` is a good place to start.