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

@@ -19,6 +19,7 @@ var monitorType = map[uint16]struct{}{
dns.TypeSOA: {},
dns.TypeSRV: {},
dns.TypeTXT: {},
dns.TypeHTTPS: {},
// Meta Qtypes
dns.TypeIXFR: {},
dns.TypeAXFR: {},
@@ -26,7 +27,7 @@ var monitorType = map[uint16]struct{}{
}
// qTypeString returns the RR type based on monitorType. It returns the text representation
// of thosAe types. RR types not in that list will have "other" returned.
// of those types. RR types not in that list will have "other" returned.
func qTypeString(qtype uint16) string {
if _, known := monitorType[qtype]; known {
return dns.Type(qtype).String()