1 parent
cc7466823b
commit
e8c5b414d9
44 files changed
+7649
-344
No files matched your search
@@ -29,6 +29,7 @@ func (s *Server) ByTransport() map[string]TransportStats {
|
||||
ts.Blocked = s.load(t, "blocked")
|
||||
ts.Cached = s.load(t, "cached")
|
||||
ts.Errors = s.load(t, "errors")
|
||||
ts.Dropped = s.load(t, "dropped")
|
||||
ts.Truncated = s.load(t, "truncated")
|
||||
ts.Sent = s.load(t, "sent")
|
||||
out[t] = ts
|
||||
@@ -51,6 +52,12 @@ type TransportStats struct {
|
||||
Blocked uint64 `json:"blocked"`
|
||||
Cached uint64 `json:"cached"`
|
||||
Errors uint64 `json:"errors"`
|
||||
// Dropped is queries answered with silence on this transport. It is
|
||||
// bumped for every transport (a DoH drop used to be counted as an error
|
||||
// only, which made the console's transport tab under-report it), and
|
||||
// aggregating it per transport is the only way the UI can show it: the
|
||||
// aggregate in HandlerStats cannot say which transport dropped.
|
||||
Dropped uint64 `json:"dropped"`
|
||||
Truncated uint64 `json:"truncated"`
|
||||
Sent uint64 `json:"sent"`
|
||||
}
|
||||
Reference in new issue
Block a user