diff --git a/pkg/agent/sysadvisor/plugin/inference/models/borwein/inferencesvc/inference_svc.pb.go b/pkg/agent/sysadvisor/plugin/inference/models/borwein/inferencesvc/inference_svc.pb.go index 28272d68b..66ff4e29e 100644 --- a/pkg/agent/sysadvisor/plugin/inference/models/borwein/inferencesvc/inference_svc.pb.go +++ b/pkg/agent/sysadvisor/plugin/inference/models/borwein/inferencesvc/inference_svc.pb.go @@ -361,7 +361,9 @@ type InferenceResult struct { // It depends on the inference target. Output float32 `protobuf:"fixed32,3,opt,name=output,proto3" json:"output,omitempty"` // threshold to judge overload or underload. should be float between 0 and 1. - Percentile float32 `protobuf:"fixed32,4,opt,name=percentile,proto3" json:"percentile,omitempty"` + Percentile float32 `protobuf:"fixed32,4,opt,name=percentile,proto3" json:"percentile,omitempty"` + // model_version to identify where does the output come from. + ModelVersion string `protobuf:"bytes,5,opt,name=model_version,json=modelVersion,proto3" json:"model_version,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_sizecache int32 `json:"-"` } @@ -426,6 +428,13 @@ func (m *InferenceResult) GetPercentile() float32 { return 0 } +func (m *InferenceResult) GetModelVersion() string { + if m != nil { + return m.ModelVersion + } + return "" +} + func init() { proto.RegisterEnum("inferencesvc.InferenceType", InferenceType_name, InferenceType_value) proto.RegisterType((*InferenceRequest)(nil), "inferencesvc.InferenceRequest") @@ -444,52 +453,53 @@ func init() { func init() { proto.RegisterFile("inference_svc.proto", fileDescriptor_96721cf42274ca03) } var fileDescriptor_96721cf42274ca03 = []byte{ - // 715 bytes of a gzipped FileDescriptorProto + // 730 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x55, 0x4d, 0x6f, 0xd3, 0x4a, - 0x14, 0xcd, 0x24, 0xef, 0x55, 0x2f, 0xb7, 0x4d, 0x5f, 0x32, 0x7d, 0x2f, 0xf5, 0x4b, 0x54, 0xbf, - 0x28, 0x08, 0x88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c8, 0x01, 0xce, 0x4f, 0x31, 0xa2, 0x2e, 0x7f, 0x99, 0x2b, 0x97, 0xfe, 0xf2, + 0x27, 0xad, 0x67, 0x76, 0x3f, 0xa2, 0xd3, 0x33, 0x15, 0x7d, 0x3b, 0x53, 0x33, 0x1f, 0x46, 0x2a, + 0x3a, 0x1d, 0xa9, 0xe8, 0xcb, 0x48, 0x45, 0xdf, 0x47, 0x2a, 0x3a, 0xf9, 0xa1, 0x66, 0xde, 0x58, + 0xb1, 0x2f, 0x50, 0xdf, 0x6f, 0xc3, 0xf1, 0x91, 0xe9, 0x75, 0xb5, 0xbe, 0x29, 0x4c, 0x7b, 0xc8, + 0xc5, 0x8e, 0xc5, 0x3c, 0xd0, 0xdc, 0x7e, 0x4f, 0x33, 0x7b, 0xe0, 0x08, 0x8d, 0x0f, 0xb9, 0xd9, + 0x09, 0x28, 0x67, 0x9e, 0xe6, 0xda, 0x7e, 0x8f, 0x3a, 0xda, 0xb4, 0xbf, 0x16, 0x59, 0xc7, 0xb5, + 0x36, 0x3b, 0x86, 0x38, 0xce, 0x03, 0xab, 0xbd, 0x1a, 0x7d, 0xbe, 0x6e, 0xfe, 0x0e, 0x00, 0x00, + 0xff, 0xff, 0x3c, 0x07, 0xdd, 0x46, 0x12, 0x07, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -866,6 +876,13 @@ func (m *InferenceResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.ModelVersion) > 0 { + i -= len(m.ModelVersion) + copy(dAtA[i:], m.ModelVersion) + i = encodeVarintInferenceSvc(dAtA, i, uint64(len(m.ModelVersion))) + i-- + dAtA[i] = 0x2a + } if m.Percentile != 0 { i -= 4 encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Percentile)))) @@ -1049,6 +1066,10 @@ func (m *InferenceResult) Size() (n int) { if m.Percentile != 0 { n += 5 } + l = len(m.ModelVersion) + if l > 0 { + n += 1 + l + sovInferenceSvc(uint64(l)) + } return n } @@ -1173,6 +1194,7 @@ func (this *InferenceResult) String() string { `InferenceType:` + fmt.Sprintf("%v", this.InferenceType) + `,`, `Output:` + fmt.Sprintf("%v", this.Output) + `,`, `Percentile:` + fmt.Sprintf("%v", this.Percentile) + `,`, + `ModelVersion:` + fmt.Sprintf("%v", this.ModelVersion) + `,`, `}`, }, "") return s @@ -2189,6 +2211,38 @@ func (m *InferenceResult) Unmarshal(dAtA []byte) error { v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) iNdEx += 4 m.Percentile = float32(math.Float32frombits(v)) + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ModelVersion", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInferenceSvc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthInferenceSvc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthInferenceSvc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ModelVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipInferenceSvc(dAtA[iNdEx:]) diff --git a/pkg/agent/sysadvisor/plugin/inference/models/borwein/inferencesvc/inference_svc.proto b/pkg/agent/sysadvisor/plugin/inference/models/borwein/inferencesvc/inference_svc.proto index 79668e1a4..6b312f121 100644 --- a/pkg/agent/sysadvisor/plugin/inference/models/borwein/inferencesvc/inference_svc.proto +++ b/pkg/agent/sysadvisor/plugin/inference/models/borwein/inferencesvc/inference_svc.proto @@ -72,6 +72,8 @@ message InferenceResult { float output = 3; // threshold to judge overload or underload. should be float between 0 and 1. float percentile = 4; + // model_version to identify where does the output come from. + string model_version = 5; } service InferenceService { diff --git a/pkg/agent/sysadvisor/plugin/metric-emitter/syncer/pod/model.go b/pkg/agent/sysadvisor/plugin/metric-emitter/syncer/pod/model.go index 15dd2c7df..d0ff79d4d 100644 --- a/pkg/agent/sysadvisor/plugin/metric-emitter/syncer/pod/model.go +++ b/pkg/agent/sysadvisor/plugin/metric-emitter/syncer/pod/model.go @@ -80,6 +80,10 @@ func (p *MetricSyncerPod) modelMetric() { Key: fmt.Sprintf("%s%s", data.CustomMetricLabelSelectorPrefixKey, "valid_break_line"), Val: fmt.Sprintf("%v", validBreakLine), }, + metrics.MetricTag{ + Key: fmt.Sprintf("%s%s", data.CustomMetricLabelSelectorPrefixKey, "model_version"), + Val: fmt.Sprintf("%v", result.ModelVersion), + }, )...) })