I would like to know how many WMTS tiles are loaded when I navigate. I use a WMTS feed which has a yearly limit of 2M transactions and I have to monitor my use of it to prevent reaching this limit, so knowing how many tiles are loaded depending on the size of my QGIS window would help.
You could use a network monitoring tool (see examples below), and configure it to filter on outgoing HTTP or HTTPS URL requests that include your WMTS server host and the WMTS tile request parameters:
- (the WMTS server host name(s) you are interested in)
Then log and/or count the matching results.
This would count all real requests, whether they are from QGIS, web browser, or elsewhere, and would NOT count re-use of cached tiles where the WMTS source is not involved in the 'request' (including application-level or OS-level caching).
Some example network traffic monitoring tools you could use are:
- Wireshark (Windows or MacOS)
- snoop (Solaris)
- tcpdump (Linux)
See the man page (snoop/tcpdump) or user manual (Wireshark) for instructions on how to configure these tools/apps to filter out the items you're interested in.