plugin/metrics: support HTTPS qType in requests count metric label (#4934)

Automatically submitted.
This commit is contained in:
Pavol Lieskovský
2021-10-28 10:50:23 +02:00
committed by GitHub
parent de21fb2436
commit 5934c7e89e
3 changed files with 5 additions and 4 deletions

View File

@@ -21,8 +21,8 @@ func Report(server string, req request.Request, zone, rcode string, size int, st
RequestDo.WithLabelValues(server, zone).Inc()
}
qtype := qTypeString(req.QType())
RequestCount.WithLabelValues(server, zone, net, fam, qtype).Inc()
qType := qTypeString(req.QType())
RequestCount.WithLabelValues(server, zone, net, fam, qType).Inc()
RequestDuration.WithLabelValues(server, zone).Observe(time.Since(start).Seconds())