Can you somewhat combine them? I know I can use them separately but it is consuming more CPU power.
I've seen that some users want a network traffic consumption monitor, they can use this code, but I'm sure we would all appreciate to see this in the pi-hole admin dashboard !
This unfortunately does not pertain to Pi-hole and what Pi-hole is trying to achieve (it's scope).
Pi-hole is a DNS resolver, and the interface is tracking just that. DNS requests.
The said (or any) traffic monitoring can be implemented by the user community.
A known and popular community supported project is this: