Expose simd type to index node metrics (#8300)

Signed-off-by: dragondriver <jiquan.long@zilliz.com>
pull/8311/head
dragondriver 2021-09-23 11:29:54 +08:00 committed by GitHub
parent b3f6bd2088
commit fb98f06de8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

View File

@ -50,6 +50,8 @@ func getSystemInfoMetrics(
},
SystemConfigurations: metricsinfo.IndexNodeConfiguration{
MinioBucketName: Params.MinioBucketName,
SimdType: Params.SimdType,
},
}
resp, err := metricsinfo.MarshalComponentInfos(nodeInfos)

View File

@ -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

View File

@ -162,6 +162,8 @@ func TestIndexNodeInfos_Codec(t *testing.T) {
},
SystemConfigurations: IndexNodeConfiguration{
MinioBucketName: "a-bucket",
SimdType: "auto",
},
}
s, err := MarshalComponentInfos(infos1)