diff --git a/go.mod b/go.mod index 33079cb112c20..f94077c5e28b2 100644 --- a/go.mod +++ b/go.mod @@ -274,3 +274,5 @@ replace ( ) exclude github.com/apache/pulsar-client-go/oauth2 v0.0.0-20211108044248-fe3b7c4e445b + +replace github.com/milvus-io/milvus-proto/go-api/v2 => /home/shaoting/workspace/milvus-proto/go-api diff --git a/pkg/go.mod b/pkg/go.mod index a485298e20bd0..b114adbe23437 100644 --- a/pkg/go.mod +++ b/pkg/go.mod @@ -194,3 +194,5 @@ replace ( ) exclude github.com/apache/pulsar-client-go/oauth2 v0.0.0-20211108044248-fe3b7c4e445b + +replace github.com/milvus-io/milvus-proto/go-api/v2 => /home/shaoting/workspace/milvus-proto/go-api diff --git a/pkg/metrics/rootcoord_metrics.go b/pkg/metrics/rootcoord_metrics.go index 86ad947aaf3f5..9ec5118da19b7 100644 --- a/pkg/metrics/rootcoord_metrics.go +++ b/pkg/metrics/rootcoord_metrics.go @@ -146,6 +146,15 @@ var ( Help: "The number of roles", }) + // RootCoordNumOfPrivilegeGroups counts the number of credentials. + RootCoordNumOfPrivilegeGroups = prometheus.NewGauge( + prometheus.GaugeOpts{ + Namespace: milvusNamespace, + Subsystem: typeutil.RootCoordRole, + Name: "num_of_privilege_groups", + Help: "The number of privilege groups", + }) + // RootCoordTtDelay records the max time tick delay of flow graphs in DataNodes and QueryNodes. RootCoordTtDelay = prometheus.NewGaugeVec( prometheus.GaugeOpts{ diff --git a/scripts/generate_proto.sh b/scripts/generate_proto.sh index 1b087e8360a10..5eb6214c32e24 100755 --- a/scripts/generate_proto.sh +++ b/scripts/generate_proto.sh @@ -25,7 +25,7 @@ done ROOT_DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )" PROTO_DIR=$ROOT_DIR/internal/proto/ -API_PROTO_DIR=$ROOT_DIR/cmake_build/thirdparty/milvus-proto/proto +API_PROTO_DIR=/home/shaoting/workspace/milvus-proto/proto CPP_SRC_DIR=$ROOT_DIR/internal/core PROTOC_BIN=$ROOT_DIR/cmake_build/bin/protoc