I am currently working on extending pi hole as a project. Its not massive what I am looking to do I don't believe its more of an excersise of the workflow of compiling a custom version.
I have ran into a snag though that is entirely due to my inexperience and I was told posting in the community might get some positive results!
I am looking at using the total amount of queries in the last x interval and performing a calculation on this - Basically so the PiHole can quantify the amount of data that is saved (from binning queries only - I dont think I can predict how big the data would be from a sucessfull query).
I have an idea of how this would look in terms of modifying the adminLTE php/html to display a neat new box for the new statistic however what I cant figure out is where the index.php pulls the data from that populates the 4 stats of total queries, percentage blocked etc. My ideal solution would be to take the accurate size of each query from the packet as I have seen them appear in wireguard for each query however again, newbie. My initial goal is to get a simple one going to start with using some presumed parameters(query length).
I have spent some time scouring the code and am thinking it might be in index.js where i do this however being a newbie I'm having a lot of difficulty understanding the codebase.
Thanks for taking the time to read my problem