mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-04 21:09:06 +08:00
9d16b972ea
issue: #36621 1. Add API to access task runtime metrics, including: - build index task - compaction task - import task - balance (including load/release of segments/channels and some leader tasks on querycoord) - sync task 2. Add a debug model to the webpage by using debug=true or debug=false in the URL query parameters to enable or disable debug mode. Signed-off-by: jaime <yun.zhang@zilliz.com>
23 lines
990 B
Go
23 lines
990 B
Go
// Copyright (C) 2019-2020 Zilliz. All rights reserved.
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
|
|
// with the License. You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software distributed under the License
|
|
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
// or implied. See the License for the specific language governing permissions and limitations under the License.
|
|
|
|
package metricsinfo
|
|
|
|
import "github.com/cockroachdb/errors"
|
|
|
|
const (
|
|
// MsgUnimplementedMetric represents that user requests an unimplemented metric type
|
|
MsgUnimplementedMetric = "metric request type is not implemented"
|
|
msgInvalidSystemInfosMetricCache = "system infos metric is invalid"
|
|
)
|
|
|
|
var errInvalidSystemInfosMetricCache = errors.New(msgInvalidSystemInfosMetricCache)
|