Add crawler_duration gauge and server_queries counter

This commit is contained in:
James Mills
2021-02-03 19:09:16 +10:00
parent 6dc7510e8f
commit ccfbd18b29
3 changed files with 12 additions and 0 deletions

View File

@@ -231,6 +231,8 @@ func (s *Server) SearchHandler() httprouter.Handle {
ctx.Results = results
ctx.SearchTook = searchResults.Took.Truncate(time.Nanosecond)
metrics.Counter("server", "queries").Inc()
s.render("search", w, ctx)
}
}