Comments (100)

let's be honest, is it ever really the "final version"

Copy of Final version of my dashboard V2 (1)

Copy of Final version of my dashboard V2 (1)_final

Copy of Final version of my dashboard V2 (1)_final_FINAL

Copy of Copy of Final version of my dashboard v2 (1)_final_FINAL

Copy of Copy of Final version of my dashboard v2 (1)_final_FINAL (1)

Copy of Copy of Final version of my dashboard v2 (1)_final_FINAL (1) rev_b2

Copy of Final version of my dashboard V2 (1).bak

Its a tricky question. This is what I had in my mind when i started working on it. It took me multiple iterations to get there. Could be few more iterations if anything new pops up in my head.

Edit: For now yes ... in long term may be not

This sentiment applies to literally all of my hobbies - between simracing, flightsim, pc building, home theater, and now getting into self-hosting, what the hell is wrong with me?? 😂

That's a sign that you are alive and well! If you give up your hobbies and stop iterating over them, then you are dead...

You are correct, I am quite healthy, which is certainly something to be grateful for. My wallet, on the other hand....

Hahaha, I can sympathize with that! But better broke than miserable!

True; on the other hand, money is to happiness what running shoes are to a marathon - not strictly required, but fucking helpful:)

Yup... I'm also quite careful with what I spend my money on but I'm not afraid to splurge if I know I'm actually gonna get my moneys worth.. Hopefully you will be busy for a long time with your hobbies :P

Hopefully you will be busy for a long time with your hobbies :P

Oh trust me, posts like these make sure that won't be an issue 🤣

You two are really wholesome

Dashboard in Grafana with Prometheus and Loki

unbound-dashboard

DIY adblocker, recursive resolving from root and Redis persistent cache with Unbound

unbound-redis

What do you think of pi-hole with unbound vs pihole with cloudflared? or if you've never tried either of those nvm.

Cloudflared is DoH proxy tool from cloudflare. It works only with DoH provider upstream servers.

Unbound is a full featured DNS server that provides DoH, DoT and a lot more. If you are looking for only DoH then go with cloudflared otherwise Unbound is far more feature rich.

I personally never used pi-hole. I did try cloudflare tunnel sometime back.

If you mean using Cloudflare DNS with pihole, I prefer it over using Unbound. I switched from Unbound after many issues loading the AWS console and other tools I use for work (e.g., daily.co website).

They mean https://docs.pi-hole.net/guides/dns/cloudflared/

Thanks, that's exactly what I mean.

Thank you for sharing

You are welcome

Looks nice, but now the elephant...what do you actually do with all this information - did you ever find a culprit using the dashboard, ie. how useful is it ?

This is useless information. In fact 99% of the dashboards people upload here are useless. The only useful information I collect is power usage. Anything else, can be retrieved adhoc

There are certain basic things I like to track when my stuff is exposed to the Internet. Login attempts, CPU usage, data usage, etc. But I'm not expecting much traffic so anything should jump out at me immediately.

Other than that yeah, these dashboards are just noise that looks cool. I'm sure people are having fun with them, and that's ultimately what matters in a hobby, but let's not kid ourselves, these are for fun and showing off.

how do you log power usage? from a UPS or you talking at the OS level?

From NUT to InfluxDb to Grafana.

See this recent thread here on /r/selfhosted:

https://www.reddit.com/r/selfhosted/comments/111czbh/exporting_monitoring_ups_nut_server_stats_to/

Yea I also had insane amounts of logging going on for my system... until I realized I never really looked at any of it anyway. Now I just log power usage

Id like to know that as well, never found a good use case for pihole, except for looking at it and thinking "that's nice".

Is that a grafana theme? 👀

yes, the color composition is not default for pie charts and other stuff. Default colors are too bright and eye hurting.

Have you thought of dockerizing the process? Or if someone were to do so in a fork, would you be open to a MR/PR?

I wish that Prometheus and grafana setup would be easy to setup because the data visualisation is really cool

It seems tough in the beginning. The guide I have created is as much user friendly as it could get. (providing even the configuration files)

Once it is up and running it really pays off.

[removed]

Really 50% is a lot. It hardly takes 1-3% CPU. This is the output of top with everything running on my RP4 2GB.

top - 19:23:06 up 8 days, 9:58, 1 user, load average: 0.15, 0.05, 0.04

Tasks: 103 total, 1 running, 102 sleeping, 0 stopped, 0 zombie

%Cpu(s): 1.7 us, 0.2 sy, 0.0 ni, 98.0 id, 0.1 wa, 0.0 hi, 0.0 si, 0.0 st

MiB Mem : 1899.1 total, 722.6 free, 408.3 used, 768.3 buff/cache

MiB Swap: 1024.0 total, 1024.0 free, 0.0 used. 1390.2 avail Mem

I need something like this for CoreDNS!

What do you think of technitium

Thank you very much. Took a look and didn't found how to configure among with pihole, can you please give an idea?

It is intended to be used as a standalone solution for adblocking and DNS server.

But should work with Unbound whichever way you are using it (with pi-hole or adguard).

Can I get a dashboard like this with pihole-unbound setup?

As I mentioned earlier main purpose was to eliminate multiple components for resolving DNS and use Unbound only as DNS resolver and adblocker. You can use this dashboard with Unbound.

If you are using pihole-unbound setup, pihole uses dnsmasq under the hood so the pihole blocklist format is the one that dnsmasq uses.

"Blocklist Domains" panel will not work as it is from this dashboard. You have 2 options either remove that panel or change the "unbound-exporter" code to count dnsmasq blocklist domains (requires minor change).

Thanks, any plan for amd64?

Grafana:

wget https://dl.grafana.com/oss/release/grafana_9.3.6_amd64.deb

sudo dpkg -i grafana_9.3.6_amd64.deb

Unbound Exporter:

Compile it on your amd machine. Source code and compilation instructions are available at:

https://github.com/ar51an/unbound-exporter

"prometheus-unbound-exporter.service" can be used as it is.

Loki:

curl -O -L "https://github.com/grafana/loki/releases/download/v2.7.3/loki_2.7.3_amd64.deb"

curl -O -L "https://github.com/grafana/loki/releases/download/v2.7.3/promtail_2.7.3_amd64.deb"

sudo dpkg -i loki_2.7.3_amd64.deb

sudo dpkg -i promtail_2.7.3_amd64.deb

Above changes are needed to run it on amd64 linux based machine. Rest of the instructions should be same from the "unbound-dashboard" repo.

Top post of the month? A dashboard? Wow

Brilliant - looks very "orderly" (I'm German LOL) and neat. Plus, I like the colors and everything. To me, the inital look at it really made me feel like "this is how it's supposed to look", nothing to be added or replaced or repositioned.

Thanks. It took many iterations to make it look like this, I am just talking about the order of panels and color combinations. They should be in sync and the color from one panel should not obscure the surrounding panel. If you edit the dashboard you can see how I selected hue for almost every color to keep them in harmony.

Incredible, nice work. Ill be borrowing bits of this.

thanks, sure feel free

Very nice. Good Job!

What a useless thing, I love it. I will do something similar.

Very Nice... Feel Unbound either hasn't gotten much attention lately or if so, users trying to tie it in with 2-3 other things only utilizing a qtr of its power lol

Where did you get the idea for such GUI?

Agreed. Folks always try to tag it with other stuff, when it can be used alone to do all the things and performance is much better when used independently.

From my UI development background.

Welcome to the Matrix

What is unbound? Is it like a DNS ad blocker?

It is a DNS server that you can run locally and it can be used as an adblocker. It became the default DNS server for many Linux distributions.

This is so cool. What did you use to build this dashboard

Grafana. Check the link above in my post it has complete user guide.

I'm not seeing the link anywhere. All I see in the post in the image itself. Am I missing something? Thanks!

Links are in the first comment if you sort the comments by "Old". (Most probably you figured it out already)

Gorgeous.

I love it.

I want this. You have given me a goal.

Thank you for adding a new project to my mental to do list lol

I'm thinking a wifi sbc connected to a vertical monitor somewhere on a wall where it can pass off as a painting, except it's that but tailored to my unraid server :-o

That is exactly what I was looking for! Is there a chance for a dockerized exporter? I have my stack using docker and I would love to see an exporter image.

where are the scripts and config files that are refrenced in the github repo? I may be blind, but I do not seem to see them.

Doesn't it say "in the release" wherever a config or other file is mentioned?

Ahhh it took me a moment to find it.

is the redis backend necessary for the dashboard? I am running unbound on a fairly small memory footprint device and would need to run redis on a separate server, if i were to run it.

It is optional. If you do not want to use redis comment out the stuff under "cachedb:" tag in "unbound.conf". Along with commenting out "module-config:" option.

If you want to run redis on different machine change the "redis-server-host:" in "unbound.conf" to that IP.

You need to compile unbound as mentioned in "unbound-redis" repo to use redis. Distribution version of "unbound" does not have cachedb/redis enabled by default.

Ah ok. I would be building this for a couple of armv7 devices (mikrotik hapac2's to be exact) so I am not certain if i would gain any benefit form redis.

I most certainly could not RUN redis on the devices. I suppose I would need to read more into what the benefits of redis in a situation like this would gian and understand what happens if the redis db goes away.

There are 2 main advantages of using redis.

If you are running single instance of Unbound in LAN it gives persistent cache (in case machine/unbound restarts)

If you are running multiple instances of Unbound in LAN then it gives the ability of persistent cache and shared cache across multiple instances.

What happens if the redis server is rebooted while unbound is still running?

When redis is rebooted it will reload its saved cache in memory again. It won't make any difference if Unbound is running or not.

Worst case scenario lets suppose unbound sent a lookup request to redis in that split second when redis is rebooting it will not get any response back, so Unbound will resolve that request recursively from the root server or upstream server.

This is the Unbound request lookup sequence:

Own Cache > Redis Persistent Cache > Recursive Resolve From Root/Upstream Server

I tried making a recursive DNS server with pihole and unbound, and it went terrible. My raspberry pi's dchpd stuff got messed up, making it impossible to remotely ssh into it. I ended up having to restart all my progress. Since you seem experienced in this, what are the perks of using unbound?

Would highly recommend /r/Pihole

Yeah, was going to say the dashboard reminded me of pihole's dashboard

It really depends what you are looking for. Unbound is a full featured DNS server that provides recursive resolving from root, caching, validating, forwarding and a lot more.

If you know why you need Unbound that will make it easier to know what Unbound does. It can do a lot of things that you will do with multiple tools.

Honestly, I just tried it out because I had the freetime. The only word you said that I understood was "dns" and " forwarding" :(

To summarize it in simplest form, Unbound can work as your local DNS server that you can use for recursive resolving from root or forwarding to upstream servers. It can also serve as adblocker. Using local DNS server makes DNS lookup faster if you give it enough time to cache stuff. All this can be done using only Unbound nothing else is needed.

Ok thanks! Honestly, with cloudflare's new DNS over HTTPS, wouldn't it be faster and more secure to use 1.1.1.1 instead of you own? Also, I'm using pihole as my adblocker, and was wondering if there is anyway to also use that adblocker outside of my own house.

See if you can automate the setup with Ansible. ChatGPT can help you write the scripts.

Need this to be a pfsense package! I guess the exporter bit at least... Don't think anyone's running grafana/prometheus/loki on pfsense

Exporter publishes metrics at the this url:

http://:9167/metrics

It can be compiled and used as an independent service. Source code and systemd service are provided. See if you can utilize it anywhere in pfsense.

You can run telegraf on pfsense. Including grabbing pfBlockerNG metrics.

Is it a package? Got any links to a setup guide?

https://homelabing.com/pfsense-pfblockerng-telegraf-influxdb-grafana/

https://grafana.com/grafana/dashboards/12023-pfsense-system-dashboard/

Search turns up lots of others too.

Unbound has a ui?

No. That is why I created one.

I don't find any of those useful, but as a smth like new-computer-art/aestetics looks really good

Content looks very similar to the default AdGuard dashboard

Wonderful!!
how is it made? i feel it is grafana based dashboard!!
with own customer exporter? or which other components?
influxDB . and what other needed to work with for this?

do you also like admin LTE based dashBoard or dataDOG too?

If you sort the comments by "Old", github links are available in the first post. Github page has complete usage instructions along with all the answers to your questions.