Need metrics at Measurement level

Hi, we need to get the metrics like number of query requests, number of rows consumed per measurement. I found that _internals database and httpd module provide number of query requests at aggregated level on whole db. Is there a way I can configure, or write a plugin to achieve this?

Telegraf uses the http://localhost:8086/debug/vars resource to report some of this information in its InfluxDB input plugin.

Thanks daniel, i looked into the output of the /debug/vars endpoint it doesn’t have the measurement level information.