Skip to content

Commit

Permalink
metrics: matcher add status code label to matcher latency metric
Browse files Browse the repository at this point in the history
This is something that is needed as a hotfix in order to
honor the production SLO.

Signed-off-by: crozzy <joseph.crosland@gmail.com>
  • Loading branch information
crozzy committed Mar 1, 2022
1 parent 6d2dfbe commit cdb67fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware/introspection/instrumentedhandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func InstrumentedHandler(endpoint string, traceOpts othttp.Option, next http.Han
Subsystem: Subsystem,
Name: endpoint + "_request_duration_seconds",
Help: "Distribution of request durations for the given path",
}, []string{},
}, []string{"code"},
)
)
prometheus.MustRegister(RequestCount, RequestSize, ResponseSize, RequestDuration)
Expand Down

0 comments on commit cdb67fb

Please sign in to comment.