Hi,
So on one hand, there's two ways to get query stats about a specific query or all queries:
b) When enabling the query log file (config option global.query_log_file), the query log file contains those stats for every executed query.
However, these stats currently don't include the number of touched samples :(
But the PromQL engine is already tracking the total number of touched samples as part of making sure that the maximum configured sample limit (flag "--query.max-samples") is not exceeded. So it would probably not be hard to expose those stats as well, it's just not done yet.
Cheers,
Julius