Skip to content

Commit 233683c

Browse files
author
Feroze Mohideen
authored
add support for 0xx http status code (#4234)
1 parent abb2912 commit 233683c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/kubernetes/prometheus/metrics.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ type promParsedSingletonQueryResult struct {
309309
Bytes interface{} `json:"bytes,omitempty"`
310310
ErrorPct interface{} `json:"error_pct,omitempty"`
311311
Latency interface{} `json:"latency,omitempty"`
312+
StatusCode0xx interface{} `json:"0xx,omitempty"`
312313
StatusCode1xx interface{} `json:"1xx,omitempty"`
313314
StatusCode2xx interface{} `json:"2xx,omitempty"`
314315
StatusCode3xx interface{} `json:"3xx,omitempty"`
@@ -407,6 +408,8 @@ func parseNginxStatusQuery(ctx context.Context, rawQuery []byte) ([]*promParsedS
407408
}
408409

409410
switch result.Metric.StatusCode {
411+
case "0xx":
412+
singletonResultsByDate[dateKey].StatusCode0xx = values[1]
410413
case "1xx":
411414
singletonResultsByDate[dateKey].StatusCode1xx = values[1]
412415
case "2xx":

0 commit comments

Comments
 (0)