]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
expose bogus_log.frequent as web api
authorUlrich Wisser <ulrich.wisser@iis.se>
Thu, 19 Jul 2018 22:20:42 +0000 (18:20 -0400)
committerPetr Špaček <petr.spacek@nic.cz>
Tue, 11 Dec 2018 16:05:10 +0000 (17:05 +0100)
modules/http/http.lua
modules/http/prometheus.lua

index a095afdb07833f762ba5a26762eb61427b036e31..f61102a514a562eacaac38ae5f02322059083e30 100644 (file)
@@ -1,5 +1,6 @@
 -- Load dependent modules
 if not stats then modules.load('stats') end
+if not bogus_log then modules.load('bogus_log') end
 
 -- This is a module that does the heavy lifting to provide an HTTP/2 enabled
 -- server that supports TLS by default and provides endpoint for other modules
index cff4050df666f7cecda1ae099b530fca6a936159..00d93de51852ad62094d582ca4cfae64f60c9d2a 100644 (file)
@@ -165,6 +165,7 @@ M.endpoints = {
        ['/stats']     = {'application/json', getstats, stream_stats},
        ['/frequent']  = {'application/json', function () return stats.frequent() end},
        ['/upstreams'] = {'application/json', function () return stats.upstreams() end},
+       ['/bogus']     = {'application/json', function () return bogus_log.frequent() end},
        ['/metrics']   = {'text/plain; version=0.0.4', serve_prometheus},
 }