Commit graph

3661 commits

Author SHA1 Message Date
Ildar Kamalov
d8a3ee3676 change graph stats to 24 hours
Closes #328
2018-09-11 12:40:01 +03:00
Eugene Bujak
46e447589c Merge pull request #16 in DNS/adguard-dns from footer to master
* commit '97161ab4f0694367458933bc6ba44efe4d5e0509':
  web interface -- Update footer from placeholder to actual values.
2018-09-10 21:17:57 +03:00
Eugene Bujak
97161ab4f0 web interface -- Update footer from placeholder to actual values. 2018-09-10 21:14:28 +03:00
Eugene Bujak
3901dda39c Merge pull request #14 in DNS/adguard-dns from dnsfilter_recursion to master
* commit 'd49e3769a105f4dee639b9dec1112b123b7a23aa':
  dnsfilter -- do not check lookup hosts against themselves to avoid recursion
  Add support for serving /etc/hosts
  Makefile -- Fix cross-compilation
2018-09-10 20:52:20 +03:00
Eugene Bujak
d49e3769a1 dnsfilter -- do not check lookup hosts against themselves to avoid recursion 2018-09-10 20:43:22 +03:00
Eugene Bujak
c1e16cc584 Add support for serving /etc/hosts 2018-09-10 20:43:22 +03:00
Eugene Bujak
9c1dc6d373 Makefile -- Fix cross-compilation 2018-09-10 17:46:42 +03:00
Eugene Bujak
fced9178b8 Merge pull request #13 in DNS/adguard-dns from fix_coredns_build to master
* commit 'd34049b5135ff5dac2015dd93a5a624abdfe2cb4':
  travis -- Fix go test failure.
2018-09-10 16:10:44 +03:00
Eugene Bujak
d34049b513 travis -- Fix go test failure. 2018-09-10 15:57:47 +03:00
Eugene Bujak
43dbef8935 Merge pull request #12 in DNS/adguard-dns from fix_coredns_build to master
* commit 'f6d7d6a37ac9f8a184794d08c5b8a43bdc24e75a':
  Fix coredns build failure.
2018-09-10 15:33:05 +03:00
Eugene Bujak
f6d7d6a37a Fix coredns build failure. 2018-09-10 15:27:46 +03:00
Eugene Bujak
b54f9a7a36 Merge pull request #11 in DNS/adguard-dns from feature/313 to master
* commit '9e6ed7f273e996b2a89d9eda2302117adcc2389d':
  fix filtered reason overflow
  fix table cell overflow in filters
2018-09-07 19:12:05 +03:00
Ildar Kamalov
9e6ed7f273 fix filtered reason overflow 2018-09-07 19:06:09 +03:00
Ildar Kamalov
04faff3e2c fix table cell overflow in filters 2018-09-07 18:58:48 +03:00
Eugene Bujak
5fdaf7cb66 Merge pull request #10 in DNS/adguard-dns from feature/313 to master
* commit '76f98e2950463d4e176f9a5e2bf2c2c1c8aee51c':
  fix default page size in query logs
2018-09-07 18:44:34 +03:00
Ildar Kamalov
76f98e2950 fix default page size in query logs
Closes #313
2018-09-07 18:41:53 +03:00
Konstantin 🦄 Zamyakin
ba836220b8 Merge pull request #9 in DNS/adguard-dns from consistent-stats to master
* commit '31893410892bd047c9f6ea8f602717e6996c9491':
  web interface -- Make refresh buttons reload all data, not just counters
  web interface -- change text from 'general counters' to 'general statistics'
  Fixup of previous commit -- errand keystroke crept in
  API /stats_top -- sort top entries by value
  API /stats_top -- show only top entries for last 3 minutes
2018-09-07 18:21:46 +03:00
Eugene Bujak
3189341089 web interface -- Make refresh buttons reload all data, not just counters 2018-09-07 18:05:10 +03:00
Eugene Bujak
4ba8293c06 web interface -- change text from 'general counters' to 'general statistics' 2018-09-07 18:05:02 +03:00
Eugene Bujak
7094ed4f28 Fixup of previous commit -- errand keystroke crept in 2018-09-07 17:59:24 +03:00
Eugene Bujak
f623c3d909 API /stats_top -- sort top entries by value 2018-09-07 17:50:03 +03:00
Eugene Bujak
8198b65f29 API /stats_top -- show only top entries for last 3 minutes 2018-09-07 17:49:33 +03:00
Konstantin 🦄 Zamyakin
38b3fe6718 Merge pull request #8 in DNS/adguard-dns from parental_metrics to master
* commit '9682dc6bc19ea940cf71911f6281450c7027eb16':
  travis -- npm installation of dependencies belongs in install section
  makefile -- use npm --prefix syntax instead of doing cd into subdir
  travis -- don't use slow master or tip builds, just specify 1.x for latest go version
  travis -- move dependency installation to install section, simplify go test invocation to test all subdirs in one go
  dnsfilter -- small code cleanup
  coredns plugin metrics -- deduplicate code
  dnsfilter metrics -- parental cache hits were counted as safebrowsing cache hits
2018-09-07 17:11:21 +03:00
Eugene Bujak
9682dc6bc1 travis -- npm installation of dependencies belongs in install section 2018-09-07 16:14:43 +03:00
Eugene Bujak
659b530381 makefile -- use npm --prefix syntax instead of doing cd into subdir 2018-09-07 16:14:25 +03:00
Eugene Bujak
1b5748e328 travis -- don't use slow master or tip builds, just specify 1.x for latest go version 2018-09-07 16:13:23 +03:00
Eugene Bujak
ebf2380af4 travis -- move dependency installation to install section, simplify go test invocation to test all subdirs in one go 2018-09-07 16:13:03 +03:00
Eugene Bujak
6fc50cd743 dnsfilter -- small code cleanup 2018-09-07 16:10:43 +03:00
Eugene Bujak
3b9aaff861 coredns plugin metrics -- deduplicate code 2018-09-07 16:10:11 +03:00
Eugene Bujak
c572c7b0e9 dnsfilter metrics -- parental cache hits were counted as safebrowsing cache hits 2018-09-07 15:46:38 +03:00
Eugene Bujak
74275bebdc Merge pull request #7 in DNS/adguard-dns from metrics to master
* commit '1f0fdef8d6b2ce324e7009bb3f95626d87438d61':
  Fix invalid element order for historical stats -- in API declaration values are from oldest to newest, not other way around.
  Rewrite how historical stats are stored and calculated.
  coredns plugin -- convert logic into switch, logging unexpected non-covered cases
  After filters were redownloaded and deemed to be fresh, tell coredns server to reload
  coredns plugin -- on server reload, metrics disappeared, therefore they must be registered on each reload instead of once
  coredns plugin -- give feedback how many rules were in rulefile
  dnsfilter -- Update tests to check for expected filter/nofilter reason as well.
  Remove debug logging during checks if coredns is alive
  Be more atomic during writing of files -- this prevents other processes from seeing empty or impartial files
  Start coredns on launch before we serve HTTP -- this checks if port is available
  Move starting of coredns server into separate function
  sometimes answer can be empty, therefore question could be lost -- pass both to querylog
  Reduce binary size of coredns by 60% by removing orchestration plugins like kubernetes, route53, trace, etcd and federation
  Fix registration of metrics if querylog is enabled
2018-09-06 14:44:40 +03:00
Eugene Bujak
1f0fdef8d6 Fix invalid element order for historical stats -- in API declaration values are from oldest to newest, not other way around. 2018-09-06 02:20:51 +03:00
Eugene Bujak
04562dece3 Rewrite how historical stats are stored and calculated.
Closes #310.
2018-09-06 02:11:36 +03:00
Eugene Bujak
c7a5275d42 coredns plugin -- convert logic into switch, logging unexpected non-covered cases 2018-09-06 02:09:57 +03:00
Eugene Bujak
fe397943d6 After filters were redownloaded and deemed to be fresh, tell coredns server to reload 2018-09-06 02:09:05 +03:00
Eugene Bujak
876854d403 coredns plugin -- on server reload, metrics disappeared, therefore they must be registered on each reload instead of once 2018-09-06 02:08:49 +03:00
Eugene Bujak
c143e3d57f coredns plugin -- give feedback how many rules were in rulefile 2018-09-06 02:07:23 +03:00
Eugene Bujak
1102963fa0 dnsfilter -- Update tests to check for expected filter/nofilter reason as well. 2018-09-06 02:06:40 +03:00
Eugene Bujak
f2621c4a9a Remove debug logging during checks if coredns is alive 2018-09-06 02:04:16 +03:00
Eugene Bujak
859f1590dd Be more atomic during writing of files -- this prevents other processes from seeing empty or impartial files 2018-09-06 02:03:03 +03:00
Eugene Bujak
0ce40fd46e Start coredns on launch before we serve HTTP -- this checks if port is available 2018-09-06 02:00:57 +03:00
Eugene Bujak
33fbccf0ba Move starting of coredns server into separate function 2018-09-06 02:00:44 +03:00
Eugene Bujak
e122d9138b sometimes answer can be empty, therefore question could be lost -- pass both to querylog 2018-09-05 21:25:11 +03:00
Eugene Bujak
606bed9d20 Reduce binary size of coredns by 60% by removing orchestration plugins like kubernetes, route53, trace, etcd and federation 2018-09-05 21:23:08 +03:00
Eugene Bujak
3b11648e14 Fix registration of metrics if querylog is enabled 2018-09-05 21:21:46 +03:00
Konstantin 🦄 Zamyakin
e62050fb7e Merge pull request #6 in DNS/adguard-dns from feature/319 to master
* commit 'fa8bc570827cae708266901754712fb0c9a1f1ea':
  add reason status
  fix tooltip styles
  add client column and tooltip to blocked requests
2018-09-05 19:30:33 +03:00
Maxim Topchu
fa8bc57082 add reason status 2018-09-05 18:20:38 +03:00
Ildar Kamalov
0e99a65687 fix tooltip styles 2018-09-04 12:43:13 +03:00
Maxim Topchu
bed92f89f0 add client column and tooltip to blocked requests 2018-09-03 15:55:20 +03:00
Konstantin 🦄 Zamyakin
f12ef5d504 Merge pull request #5 in DNS/adguard-dns from querylog_client to master
* commit '379e14c28b18c0632e42760aca94aa7b72b05885':
  coredns plugin -- forgot to pass client's IP to querylog, fix that.
2018-08-31 21:08:20 +03:00