Setting the scale of the Y axis (number of queries or client requests) to a fixed value for easy comparision to another pihole

So I have two piholes -a and -b. one always gets more traffic than the other, and that's fine to me. they are in no way overloaded and running fine.

My one slight annoyance is that when looking at their admin pages the graphs for client activity and total queries are at a different scale so it's hard to do a like for like comparison of load at a glance.

I'd like to see a way to fix the Y axis (the number of x) to a fixed number so I can see the workload comparision. I understand that by default the graph scales to the work load so the data is more visible. But for my uses I care less about seeing the detail of an individual pihole as it is compared to the other one.

thoughts? ideas? thanks!

You can try to manually change the options for the Y axis.

If your only need is to make the graphics of different Pi-holes use the same maximum, you need to add max: <desired_maximum> after line 653 (for Total Queries graphic) and after line 757 (for Clients graphic).

Note: This change will be removed by a future Pi-hole update.

1 Like

You might try the following: In each pi-hole GUI, go to Settings => All Settings => Webserver and API (tab at top of page). Then scroll down to webserver.api.maxHistory. Make sure both Pihole instances have the same number in that field. If you don't see All Settings, you may have to select the Expert tab on one of the pages.

this was exactly what I was looking for. thanks!

No.
This will change how many hours the graphic will show (this is the X axis).

The question was about how to change the Y axis. This is automatically calculated and there is no option available to do that (and I don't think there will be one).

1 Like

His change was correct, I was looking to change the vertical axis and that’s what it did.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.