Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/queue/request_metric.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func NewAppRequestMetricsHandler(
)

handler.duration, err = meter.Float64Histogram(
"kn.queueproxy.app.duration",
"kn.serving.invocation.duration",
metric.WithDescription("The duration of task execution"),
metric.WithUnit("s"),
metric.WithExplicitBucketBoundaries(latencyBounds...),
Expand All @@ -69,7 +69,7 @@ func NewAppRequestMetricsHandler(
}

handler.queueLen, err = meter.Int64Gauge(
"kn.queueproxy.depth",
"kn.serving.queue.depth",
metric.WithDescription("Number of current requests in the queue"),
metric.WithUnit("{request}"),
)
Expand Down
4 changes: 2 additions & 2 deletions pkg/queue/request_metric_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func assertMetrics(t *testing.T, reader *metric.ManualReader, status int) {
metricstest.MetricsEqual(
scopeName,
metricdata.Metrics{
Name: "kn.queueproxy.depth",
Name: "kn.serving.queue.depth",
Unit: "{request}",
Description: "Number of current requests in the queue",
Data: metricdata.Gauge[int64]{
Expand All @@ -125,7 +125,7 @@ func assertMetrics(t *testing.T, reader *metric.ManualReader, status int) {
},
},
metricdata.Metrics{
Name: "kn.queueproxy.app.duration",
Name: "kn.serving.invocation.duration",
Unit: "s",
Description: "The duration of task execution",
Data: metricdata.Histogram[float64]{
Expand Down
Loading