mirror of https://github.com/milvus-io/milvus.git
Expose simd type to index node metrics (#8300)
Signed-off-by: dragondriver <jiquan.long@zilliz.com>pull/8311/head
parent
b3f6bd2088
commit
fb98f06de8
|
@ -50,6 +50,8 @@ func getSystemInfoMetrics(
|
|||
},
|
||||
SystemConfigurations: metricsinfo.IndexNodeConfiguration{
|
||||
MinioBucketName: Params.MinioBucketName,
|
||||
|
||||
SimdType: Params.SimdType,
|
||||
},
|
||||
}
|
||||
resp, err := metricsinfo.MarshalComponentInfos(nodeInfos)
|
||||
|
|
|
@ -116,6 +116,8 @@ type ProxyInfos struct {
|
|||
// IndexNodeConfiguration records the configuration of index node.
|
||||
type IndexNodeConfiguration struct {
|
||||
MinioBucketName string `json:"minio_bucket_name"`
|
||||
|
||||
SimdType string `json:"simd_type"`
|
||||
}
|
||||
|
||||
// IndexNodeInfos implements ComponentInfos
|
||||
|
|
|
@ -162,6 +162,8 @@ func TestIndexNodeInfos_Codec(t *testing.T) {
|
|||
},
|
||||
SystemConfigurations: IndexNodeConfiguration{
|
||||
MinioBucketName: "a-bucket",
|
||||
|
||||
SimdType: "auto",
|
||||
},
|
||||
}
|
||||
s, err := MarshalComponentInfos(infos1)
|
||||
|
|
Loading…
Reference in New Issue