# \[SOLVED\] Pi-hole v5 - DOCKER - Customize Dashboard?

**URL:** https://discourse.pi-hole.net/t/solved-pi-hole-v5-docker-customize-dashboard/34365
**Category:** docker
**Created:** [June 12, 2020, 6:49pm UTC](https://discourse.pi-hole.net/t/solved-pi-hole-v5-docker-customize-dashboard/34365 "2020-06-12T18:49:02Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![dugiehowsa](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/dugiehowsa/32/16619_2.png) [@dugiehowsa](https://discourse.pi-hole.net/u/dugiehowsa)
#### Post date: [June 12, 2020, 6:49pm UTC](https://discourse.pi-hole.net/t/solved-pi-hole-v5-docker-customize-dashboard/34365/1 "2020-06-12T18:49:02Z")

</div>

Pi-hole v5 - DOCKER - Customize Dashboard?

## Expected Behaviour:

Greetings. Is it possible to customize the graphs and tables on the Dashboard page? Specifically, I am looking to increase the row counts in the Top Domains and Top Clients tables.

I reviewed the following article, but it references v4, and it appears that the code has changed and the article is no longer current with the files names and code sections.

> [@Change TOP Clients from default 10 to 20](https://discourse.pi-hole.net/t/change-top-clients-from-default-10-to-20/8935):
>
> I have discovered that pi-hole is an amazing tool for not only blocking ads but monitoring what is happening on the network at a top level on a per client basis. I am more curious to see what is happening with many of the connected devices which will not show up in the top clients. (TVs, cameras, etc) I have been searching for a way to increase the TOP Clients from the default 10 to 20; however I am struggling to find a solution that works. If I can get some insight ir recommendations on what…

## Actual Behaviour:

Everything is behaving as expected. This questions is if the expected behaviour can be changed.

## Debug Token:

[https://tricorder.pi-hole.net/2k1b7rzmuy](https://tricorder.pi-hole.net/2k1b7rzmuy)

---

<div class="post-metadata">

### Author: ![dugiehowsa](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/dugiehowsa/32/16619_2.png) [@dugiehowsa](https://discourse.pi-hole.net/u/dugiehowsa)
#### Post date: [June 12, 2020, 7:54pm UTC](https://discourse.pi-hole.net/t/solved-pi-hole-v5-docker-customize-dashboard/34365/2 "2020-06-12T19:54:30Z")

</div>

Half way there. I located the "// Extract only the first ten entries" section in the /var/www/html/admin/api\_db.php file, but this only controls the Top Clients table on the Long Term Data -\> Lists page.

---

<div class="post-metadata">

### Author: ![dugiehowsa](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/dugiehowsa/32/16619_2.png) [@dugiehowsa](https://discourse.pi-hole.net/u/dugiehowsa)
#### Post date: [June 12, 2020, 8:17pm UTC](https://discourse.pi-hole.net/t/solved-pi-hole-v5-docker-customize-dashboard/34365/3 "2020-06-12T20:17:03Z")

</div>

All the way there.

I located the "function updateTopClientsChart() {" section in the /var/www/html/admin/scripts/pi-hole/js/index.js file.

First, I copied the existing line:  
` $.getJSON("api.php?summaryRaw&getQuerySources&topClientsBlocked", function(data) {`

Then, I commented out the existing line  
` // $.getJSON("api.php?summaryRaw&getQuerySources&topClientsBlocked", function(data) {`

Finally, I modified the copy of the original line  
` $.getJSON("api.php?summaryRaw&getQuerySources=20&topClientsBlocked=20", function(data) {`

Hope this helps someone else out.

---

<div class="post-metadata">

### Author: ![DanSchaper](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/danschaper/32/91_2.png) [@DanSchaper](https://discourse.pi-hole.net/u/DanSchaper)
#### Post date: [June 12, 2020, 8:17pm UTC](https://discourse.pi-hole.net/t/solved-pi-hole-v5-docker-customize-dashboard/34365/4 "2020-06-12T20:17:34Z")

</div>

Just remember to revert the changes before you try to update.

---

<div class="post-metadata">

### Author: ![dugiehowsa](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/dugiehowsa/32/16619_2.png) [@dugiehowsa](https://discourse.pi-hole.net/u/dugiehowsa)
#### Post date: [June 12, 2020, 8:20pm UTC](https://discourse.pi-hole.net/t/solved-pi-hole-v5-docker-customize-dashboard/34365/5 "2020-06-12T20:20:03Z")

</div>

> [@DanSchaper](#):
>
> Just remember to revert the changes before you try to update.

Thanks for the tip. I just figured I would need to re-apply the changes as the upgrade process would simply over-write the entire file. Does the upgrade process perform differently?

---

<div class="post-metadata">

### Author: ![DanSchaper](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/danschaper/32/91_2.png) [@DanSchaper](https://discourse.pi-hole.net/u/DanSchaper)
#### Post date: [June 12, 2020, 8:21pm UTC](https://discourse.pi-hole.net/t/solved-pi-hole-v5-docker-customize-dashboard/34365/6 "2020-06-12T20:21:58Z")

</div>

The update compares `/var/www/html/admin` which is a local git repository. If there are changes to the repo that makes the local repository "dirty" then the update will fail. We do attempt to stash changes so you can reapply them but there's a high chance the update just won't complete.

---

<div class="post-metadata">

### Author: ![dugiehowsa](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/dugiehowsa/32/16619_2.png) [@dugiehowsa](https://discourse.pi-hole.net/u/dugiehowsa)
#### Post date: [June 12, 2020, 8:29pm UTC](https://discourse.pi-hole.net/t/solved-pi-hole-v5-docker-customize-dashboard/34365/7 "2020-06-12T20:29:57Z")

</div>

> [@DanSchaper](#):
>
> The update compares `/var/www/html/admin` which is a local git repository. If there are changes to the repo that makes the local repository "dirty" then the update will fail. We do attempt to stash changes so you can reapply them but there's a high chance the update just won't complete.

Good to know. This is my first time working with DOCKER. No doubt my actions would have caused another trip to the forums.

I was wondering what these files were:

`/var/cache/lighttpd/compress/admin/scripts/pi-hole/js/`

Are these backups of files that are modified?

---

<div class="post-metadata">

### Author: ![DanSchaper](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/danschaper/32/91_2.png) [@DanSchaper](https://discourse.pi-hole.net/u/DanSchaper)
#### Post date: [June 12, 2020, 8:34pm UTC](https://discourse.pi-hole.net/t/solved-pi-hole-v5-docker-customize-dashboard/34365/8 "2020-06-12T20:34:50Z")

</div>

Oh, wait, this is Docker? Sorry I missed that. The update process is different for docker since `pihole -up` isn't supported. When there's a new version released you pull the new image which would be missing your changes. You'll have to make the same changes with the new image.

The `/var/cache` files are created by `lighttpd` automatically to improve response times. Making changes to the js files will update the cache the first time the page is served.

---

<div class="post-metadata">

### Author: ![dugiehowsa](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/dugiehowsa/32/16619_2.png) [@dugiehowsa](https://discourse.pi-hole.net/u/dugiehowsa)
#### Post date: [June 12, 2020, 8:36pm UTC](https://discourse.pi-hole.net/t/solved-pi-hole-v5-docker-customize-dashboard/34365/9 "2020-06-12T20:36:53Z")

</div>

> [@DanSchaper](#):
>
> Oh, wait, this is Docker? Sorry I missed that. The update process is different for docker since `pihole -up` isn't supported. When there's a new version released you pull the new image which would be missing your changes. You'll have to make the same changes with the new image.
> 
> The `/var/cache` files are created by `lighttpd` automatically to improve response times. Making changes to the js files will update the cache the first time the page is served.

Fantastic. Thanks for the great insight. I've learned a lot today.

---

<div class="post-metadata">

### Author: ![system](https://discourse.pi-hole.net/uploads/default/original/3X/7/c/7c8792f649eeb921c5d2b4c41564ffa873d9a2b8.png) [@system](https://discourse.pi-hole.net/u/system)
#### Post date: [July 3, 2020, 8:36pm UTC](https://discourse.pi-hole.net/t/solved-pi-hole-v5-docker-customize-dashboard/34365/10 "2020-07-03T20:36:54Z")

</div>

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