mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
use dropped for this metric
This commit is contained in:
@@ -341,8 +341,8 @@ func DefaultErrorFunc(w dns.ResponseWriter, r *dns.Msg, rcode int) {
|
|||||||
answer.SetRcode(r, rcode)
|
answer.SetRcode(r, rcode)
|
||||||
|
|
||||||
state := middleware.State{W: w, Req: r}
|
state := middleware.State{W: w, Req: r}
|
||||||
// Default zone to "." here to not blow up this metric
|
// Default zone to dropped (without closing dot, so no zone) here to not blow up this metric.
|
||||||
metrics.Report(".", state.Type(), rc, answer.Len(), time.Now())
|
metrics.Report(dropped, state.Type(), rc, answer.Len(), time.Now())
|
||||||
|
|
||||||
w.WriteMsg(answer)
|
w.WriteMsg(answer)
|
||||||
}
|
}
|
||||||
@@ -456,3 +456,5 @@ func RcodeNoClientWrite(rcode int) bool {
|
|||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const dropped = "dropped"
|
||||||
|
|||||||
Reference in New Issue
Block a user