AdguardTeam / AdGuardHome

Network-wide ads & trackers blocking DNS server
https://adguard.com/adguard-home.html
GNU General Public License v3.0
25.44k stars 1.83k forks source link

Add support for showing internal statistics #1685

Open nikeshjauhari opened 4 years ago

nikeshjauhari commented 4 years ago

Hi,

Can we have a section where we can show some internal system statistics

1) Total DNS cache consume 2) Memory in use by the process 3) Load on system 4) location of log files and other data 5) view live log 6) Block page configuration 7) Server uptime (added by @ainar-g)

Thanks, Nikesh

Relevant ideas (added by @ameshkov):

RainmakerRaw commented 4 years ago

Nice idea, and ties in with 1502 to a large degree I think. The two together become something akin to an 'expert mode', integrating both featuresets perhaps? A 'reset dns cache' would be a very welcome addition to (either of) the list as well, imho.

Potterli20 commented 4 years ago

1453

ameshkov commented 4 years ago

We should consider merging it with https://github.com/AdguardTeam/AdGuardHome/issues/1453

I am not sure we'll be able to do this in v0.105, may need to reassign

weedb0y commented 4 years ago

I’d love this

Aikatsui commented 4 years ago

About Footer:- https://github.com/AdguardTeam/AdGuardHome/issues/2121#issuecomment-696099313 Another FR suitable for this page: https://github.com/AdguardTeam/AdGuardHome/issues/813#issuecomment-664046098

Aikatsui commented 4 years ago

One example for internal statistics page however there're other products as well https://github.com/ntop/ntopng https://www.ntop.org/products/traffic-analysis/ntop/ If you make something perfect then we dont have to submit FRs related that often.

Internal statistics homepage path: <ip address or domain>:3000/lua/system_stats.lua // @nikeshjauhari 4. location of log files and other data (not only it and it's good to display log on web interface with sort options)

Screenshot from 2020-10-29 06-25-00

System statistics charts (i guess that's bit unnecessary for internal statistics, and suitable for https://github.com/AdguardTeam/AdGuardHome/issues/750) Screenshot from 2020-10-29 07-06-57

Past alerts and related user accounts https://github.com/AdguardTeam/AdGuardHome/issues/997 alerts as display on that screenshot
Screenshot from 2020-10-29 06-24-27

  1. Periodic activities Screenshot from 2020-10-29 06-24-45
jvoisin commented 3 years ago

All those information might also be useful for an attacker (uptime → see what kernel vulnerabilities are likely present, location of log files and other data → useful for LFI, Memory in use by the process → useful to see if a DoS is doable, Load on system → useful to see if doing heap feng-shui is practical, …), while providing nothing really useful to administrator, who can already log into the machine to get this data anyway.

Aikatsui commented 3 years ago

https://github.com/AdguardTeam/AdGuardHome/issues/3146

yuxuan0107 commented 2 years ago

我也需要这个功能