mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-30 02:48:45 +08:00
enhance: Remove duplicated collectionID label for task latency (#32308)
`CollectionID` already exists in channel name, so remove it to save metrics traffic. Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
parent
84f05ba66e
commit
72c172a7d7
@ -798,7 +798,7 @@ func (scheduler *taskScheduler) remove(task Task) {
|
||||
|
||||
scheduler.updateTaskMetrics()
|
||||
log.Info("task removed")
|
||||
metrics.QueryCoordTaskLatency.WithLabelValues(scheduler.getTaskMetricsLabel(task), fmt.Sprint(task.CollectionID()), task.Shard()).Observe(float64(task.GetTaskLatency()))
|
||||
metrics.QueryCoordTaskLatency.WithLabelValues(scheduler.getTaskMetricsLabel(task), task.Shard()).Observe(float64(task.GetTaskLatency()))
|
||||
}
|
||||
|
||||
func (scheduler *taskScheduler) getTaskMetricsLabel(task Task) string {
|
||||
|
@ -129,7 +129,7 @@ var (
|
||||
Name: "task_latency",
|
||||
Help: "latency of all kind of task in query coord scheduler scheduler",
|
||||
Buckets: longTaskBuckets,
|
||||
}, []string{taskTypeLabel, collectionIDLabelName, channelNameLabelName})
|
||||
}, []string{taskTypeLabel, channelNameLabelName})
|
||||
)
|
||||
|
||||
// RegisterQueryCoord registers QueryCoord metrics
|
||||
|
Loading…
Reference in New Issue
Block a user