diff --git a/control/plugin/rpc/plugin.pb.go b/control/plugin/rpc/plugin.pb.go index 28666628c..025801c57 100644 --- a/control/plugin/rpc/plugin.pb.go +++ b/control/plugin/rpc/plugin.pb.go @@ -28,6 +28,8 @@ It is generated from these files: github.com/intelsdi-x/snap/control/plugin/rpc/plugin.proto It has these top-level messages: + CollectArg + CollectReply Empty ErrReply Time @@ -71,13 +73,64 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +// Request that can be passed a stream collector +type CollectArg struct { + // Request these metrics to be collected on the plugins schedule + Metrics_Arg *MetricsArg `protobuf:"bytes,1,opt,name=Metrics_Arg,json=metricsArg" json:"Metrics_Arg,omitempty"` + // Set minimum collection duration --duration in ms + MaxCollectDuration int64 `protobuf:"varint,2,opt,name=MaxCollectDuration,json=maxCollectDuration" json:"MaxCollectDuration,omitempty"` + // Set max number of metrics to buffer before forcing send + // 0 means no forced send + MaxMetricsBuffer int64 `protobuf:"varint,3,opt,name=MaxMetricsBuffer,json=maxMetricsBuffer" json:"MaxMetricsBuffer,omitempty"` + // Blob of domain specific info + Other []byte `protobuf:"bytes,4,opt,name=Other,json=other,proto3" json:"Other,omitempty"` +} + +func (m *CollectArg) Reset() { *m = CollectArg{} } +func (m *CollectArg) String() string { return proto.CompactTextString(m) } +func (*CollectArg) ProtoMessage() {} +func (*CollectArg) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } + +func (m *CollectArg) GetMetrics_Arg() *MetricsArg { + if m != nil { + return m.Metrics_Arg + } + return nil +} + +// Replies that can be sent from a stream collector +type CollectReply struct { + // Reply with metrics + Metrics_Reply *MetricsReply `protobuf:"bytes,1,opt,name=Metrics_Reply,json=metricsReply" json:"Metrics_Reply,omitempty"` + Error *ErrReply `protobuf:"bytes,2,opt,name=Error,json=error" json:"Error,omitempty"` +} + +func (m *CollectReply) Reset() { *m = CollectReply{} } +func (m *CollectReply) String() string { return proto.CompactTextString(m) } +func (*CollectReply) ProtoMessage() {} +func (*CollectReply) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } + +func (m *CollectReply) GetMetrics_Reply() *MetricsReply { + if m != nil { + return m.Metrics_Reply + } + return nil +} + +func (m *CollectReply) GetError() *ErrReply { + if m != nil { + return m.Error + } + return nil +} + type Empty struct { } func (m *Empty) Reset() { *m = Empty{} } func (m *Empty) String() string { return proto.CompactTextString(m) } func (*Empty) ProtoMessage() {} -func (*Empty) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } +func (*Empty) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } type ErrReply struct { Error string `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` @@ -86,7 +139,7 @@ type ErrReply struct { func (m *ErrReply) Reset() { *m = ErrReply{} } func (m *ErrReply) String() string { return proto.CompactTextString(m) } func (*ErrReply) ProtoMessage() {} -func (*ErrReply) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } +func (*ErrReply) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } type Time struct { Sec int64 `protobuf:"varint,1,opt,name=sec" json:"sec,omitempty"` @@ -96,28 +149,28 @@ type Time struct { func (m *Time) Reset() { *m = Time{} } func (m *Time) String() string { return proto.CompactTextString(m) } func (*Time) ProtoMessage() {} -func (*Time) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } +func (*Time) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } type NamespaceElement struct { - Value string `protobuf:"bytes,1,opt,name=Value" json:"Value,omitempty"` - Description string `protobuf:"bytes,2,opt,name=Description" json:"Description,omitempty"` - Name string `protobuf:"bytes,3,opt,name=Name" json:"Name,omitempty"` + Value string `protobuf:"bytes,1,opt,name=Value,json=value" json:"Value,omitempty"` + Description string `protobuf:"bytes,2,opt,name=Description,json=description" json:"Description,omitempty"` + Name string `protobuf:"bytes,3,opt,name=Name,json=name" json:"Name,omitempty"` } func (m *NamespaceElement) Reset() { *m = NamespaceElement{} } func (m *NamespaceElement) String() string { return proto.CompactTextString(m) } func (*NamespaceElement) ProtoMessage() {} -func (*NamespaceElement) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } +func (*NamespaceElement) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } type PubProcArg struct { - Metrics []*Metric `protobuf:"bytes,1,rep,name=Metrics" json:"Metrics,omitempty"` - Config *ConfigMap `protobuf:"bytes,2,opt,name=Config" json:"Config,omitempty"` + Metrics []*Metric `protobuf:"bytes,1,rep,name=Metrics,json=metrics" json:"Metrics,omitempty"` + Config *ConfigMap `protobuf:"bytes,2,opt,name=Config,json=config" json:"Config,omitempty"` } func (m *PubProcArg) Reset() { *m = PubProcArg{} } func (m *PubProcArg) String() string { return proto.CompactTextString(m) } func (*PubProcArg) ProtoMessage() {} -func (*PubProcArg) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } +func (*PubProcArg) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } func (m *PubProcArg) GetMetrics() []*Metric { if m != nil { @@ -135,14 +188,14 @@ func (m *PubProcArg) GetConfig() *ConfigMap { // core.Metric type Metric struct { - Namespace []*NamespaceElement `protobuf:"bytes,1,rep,name=Namespace" json:"Namespace,omitempty"` - Version int64 `protobuf:"varint,2,opt,name=Version" json:"Version,omitempty"` - Config *ConfigMap `protobuf:"bytes,3,opt,name=Config" json:"Config,omitempty"` - LastAdvertisedTime *Time `protobuf:"bytes,4,opt,name=LastAdvertisedTime" json:"LastAdvertisedTime,omitempty"` - Tags map[string]string `protobuf:"bytes,5,rep,name=Tags" json:"Tags,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` - Timestamp *Time `protobuf:"bytes,6,opt,name=Timestamp" json:"Timestamp,omitempty"` - Unit string `protobuf:"bytes,7,opt,name=Unit" json:"Unit,omitempty"` - Description string `protobuf:"bytes,8,opt,name=Description" json:"Description,omitempty"` + Namespace []*NamespaceElement `protobuf:"bytes,1,rep,name=Namespace,json=namespace" json:"Namespace,omitempty"` + Version int64 `protobuf:"varint,2,opt,name=Version,json=version" json:"Version,omitempty"` + Config *ConfigMap `protobuf:"bytes,3,opt,name=Config,json=config" json:"Config,omitempty"` + LastAdvertisedTime *Time `protobuf:"bytes,4,opt,name=LastAdvertisedTime,json=lastAdvertisedTime" json:"LastAdvertisedTime,omitempty"` + Tags map[string]string `protobuf:"bytes,5,rep,name=Tags,json=tags" json:"Tags,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + Timestamp *Time `protobuf:"bytes,6,opt,name=Timestamp,json=timestamp" json:"Timestamp,omitempty"` + Unit string `protobuf:"bytes,7,opt,name=Unit,json=unit" json:"Unit,omitempty"` + Description string `protobuf:"bytes,8,opt,name=Description,json=description" json:"Description,omitempty"` // Types that are valid to be assigned to Data: // *Metric_StringData // *Metric_Float32Data @@ -159,7 +212,7 @@ type Metric struct { func (m *Metric) Reset() { *m = Metric{} } func (m *Metric) String() string { return proto.CompactTextString(m) } func (*Metric) ProtoMessage() {} -func (*Metric) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } +func (*Metric) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } type isMetric_Data interface { isMetric_Data() @@ -477,17 +530,17 @@ func _Metric_OneofSizer(msg proto.Message) (n int) { } type ConfigMap struct { - IntMap map[string]int64 `protobuf:"bytes,1,rep,name=IntMap" json:"IntMap,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` - StringMap map[string]string `protobuf:"bytes,2,rep,name=StringMap" json:"StringMap,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + IntMap map[string]int64 `protobuf:"bytes,1,rep,name=IntMap,json=intMap" json:"IntMap,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` + StringMap map[string]string `protobuf:"bytes,2,rep,name=StringMap,json=stringMap" json:"StringMap,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // double is float64 - FloatMap map[string]float64 `protobuf:"bytes,3,rep,name=FloatMap" json:"FloatMap,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value"` - BoolMap map[string]bool `protobuf:"bytes,4,rep,name=BoolMap" json:"BoolMap,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` + FloatMap map[string]float64 `protobuf:"bytes,3,rep,name=FloatMap,json=floatMap" json:"FloatMap,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value"` + BoolMap map[string]bool `protobuf:"bytes,4,rep,name=BoolMap,json=boolMap" json:"BoolMap,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` } func (m *ConfigMap) Reset() { *m = ConfigMap{} } func (m *ConfigMap) String() string { return proto.CompactTextString(m) } func (*ConfigMap) ProtoMessage() {} -func (*ConfigMap) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } +func (*ConfigMap) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } func (m *ConfigMap) GetIntMap() map[string]int64 { if m != nil { @@ -518,13 +571,13 @@ func (m *ConfigMap) GetBoolMap() map[string]bool { } type KillArg struct { - Reason string `protobuf:"bytes,1,opt,name=Reason" json:"Reason,omitempty"` + Reason string `protobuf:"bytes,1,opt,name=Reason,json=reason" json:"Reason,omitempty"` } func (m *KillArg) Reset() { *m = KillArg{} } func (m *KillArg) String() string { return proto.CompactTextString(m) } func (*KillArg) ProtoMessage() {} -func (*KillArg) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } +func (*KillArg) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} } type GetConfigPolicyReply struct { Error string `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` @@ -537,7 +590,7 @@ type GetConfigPolicyReply struct { func (m *GetConfigPolicyReply) Reset() { *m = GetConfigPolicyReply{} } func (m *GetConfigPolicyReply) String() string { return proto.CompactTextString(m) } func (*GetConfigPolicyReply) ProtoMessage() {} -func (*GetConfigPolicyReply) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } +func (*GetConfigPolicyReply) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} } func (m *GetConfigPolicyReply) GetBoolPolicy() map[string]*BoolPolicy { if m != nil { @@ -576,7 +629,7 @@ type BoolRule struct { func (m *BoolRule) Reset() { *m = BoolRule{} } func (m *BoolRule) String() string { return proto.CompactTextString(m) } func (*BoolRule) ProtoMessage() {} -func (*BoolRule) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} } +func (*BoolRule) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} } type BoolPolicy struct { Rules map[string]*BoolRule `protobuf:"bytes,1,rep,name=rules" json:"rules,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` @@ -586,7 +639,7 @@ type BoolPolicy struct { func (m *BoolPolicy) Reset() { *m = BoolPolicy{} } func (m *BoolPolicy) String() string { return proto.CompactTextString(m) } func (*BoolPolicy) ProtoMessage() {} -func (*BoolPolicy) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} } +func (*BoolPolicy) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} } func (m *BoolPolicy) GetRules() map[string]*BoolRule { if m != nil { @@ -608,7 +661,7 @@ type FloatRule struct { func (m *FloatRule) Reset() { *m = FloatRule{} } func (m *FloatRule) String() string { return proto.CompactTextString(m) } func (*FloatRule) ProtoMessage() {} -func (*FloatRule) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} } +func (*FloatRule) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} } type FloatPolicy struct { Rules map[string]*FloatRule `protobuf:"bytes,1,rep,name=rules" json:"rules,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` @@ -618,7 +671,7 @@ type FloatPolicy struct { func (m *FloatPolicy) Reset() { *m = FloatPolicy{} } func (m *FloatPolicy) String() string { return proto.CompactTextString(m) } func (*FloatPolicy) ProtoMessage() {} -func (*FloatPolicy) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} } +func (*FloatPolicy) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} } func (m *FloatPolicy) GetRules() map[string]*FloatRule { if m != nil { @@ -640,7 +693,7 @@ type IntegerRule struct { func (m *IntegerRule) Reset() { *m = IntegerRule{} } func (m *IntegerRule) String() string { return proto.CompactTextString(m) } func (*IntegerRule) ProtoMessage() {} -func (*IntegerRule) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} } +func (*IntegerRule) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} } type IntegerPolicy struct { Rules map[string]*IntegerRule `protobuf:"bytes,1,rep,name=rules" json:"rules,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` @@ -650,7 +703,7 @@ type IntegerPolicy struct { func (m *IntegerPolicy) Reset() { *m = IntegerPolicy{} } func (m *IntegerPolicy) String() string { return proto.CompactTextString(m) } func (*IntegerPolicy) ProtoMessage() {} -func (*IntegerPolicy) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} } +func (*IntegerPolicy) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} } func (m *IntegerPolicy) GetRules() map[string]*IntegerRule { if m != nil { @@ -668,7 +721,7 @@ type StringRule struct { func (m *StringRule) Reset() { *m = StringRule{} } func (m *StringRule) String() string { return proto.CompactTextString(m) } func (*StringRule) ProtoMessage() {} -func (*StringRule) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} } +func (*StringRule) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} } type StringPolicy struct { Rules map[string]*StringRule `protobuf:"bytes,1,rep,name=rules" json:"rules,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` @@ -678,7 +731,7 @@ type StringPolicy struct { func (m *StringPolicy) Reset() { *m = StringPolicy{} } func (m *StringPolicy) String() string { return proto.CompactTextString(m) } func (*StringPolicy) ProtoMessage() {} -func (*StringPolicy) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} } +func (*StringPolicy) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} } func (m *StringPolicy) GetRules() map[string]*StringRule { if m != nil { @@ -694,7 +747,7 @@ type MetricsArg struct { func (m *MetricsArg) Reset() { *m = MetricsArg{} } func (m *MetricsArg) String() string { return proto.CompactTextString(m) } func (*MetricsArg) ProtoMessage() {} -func (*MetricsArg) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} } +func (*MetricsArg) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} } func (m *MetricsArg) GetMetrics() []*Metric { if m != nil { @@ -711,7 +764,7 @@ type MetricsReply struct { func (m *MetricsReply) Reset() { *m = MetricsReply{} } func (m *MetricsReply) String() string { return proto.CompactTextString(m) } func (*MetricsReply) ProtoMessage() {} -func (*MetricsReply) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} } +func (*MetricsReply) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{20} } func (m *MetricsReply) GetMetrics() []*Metric { if m != nil { @@ -727,7 +780,7 @@ type GetMetricTypesArg struct { func (m *GetMetricTypesArg) Reset() { *m = GetMetricTypesArg{} } func (m *GetMetricTypesArg) String() string { return proto.CompactTextString(m) } func (*GetMetricTypesArg) ProtoMessage() {} -func (*GetMetricTypesArg) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} } +func (*GetMetricTypesArg) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{21} } func (m *GetMetricTypesArg) GetConfig() *ConfigMap { if m != nil { @@ -737,6 +790,8 @@ func (m *GetMetricTypesArg) GetConfig() *ConfigMap { } func init() { + proto.RegisterType((*CollectArg)(nil), "rpc.CollectArg") + proto.RegisterType((*CollectReply)(nil), "rpc.CollectReply") proto.RegisterType((*Empty)(nil), "rpc.Empty") proto.RegisterType((*ErrReply)(nil), "rpc.ErrReply") proto.RegisterType((*Time)(nil), "rpc.Time") @@ -1289,96 +1344,335 @@ var _Publisher_serviceDesc = grpc.ServiceDesc{ Metadata: fileDescriptor0, } +// Client API for StreamCollector service + +type StreamCollectorClient interface { + StreamMetrics(ctx context.Context, opts ...grpc.CallOption) (StreamCollector_StreamMetricsClient, error) + GetMetricTypes(ctx context.Context, in *GetMetricTypesArg, opts ...grpc.CallOption) (*MetricsReply, error) + Ping(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ErrReply, error) + Kill(ctx context.Context, in *KillArg, opts ...grpc.CallOption) (*ErrReply, error) + GetConfigPolicy(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*GetConfigPolicyReply, error) +} + +type streamCollectorClient struct { + cc *grpc.ClientConn +} + +func NewStreamCollectorClient(cc *grpc.ClientConn) StreamCollectorClient { + return &streamCollectorClient{cc} +} + +func (c *streamCollectorClient) StreamMetrics(ctx context.Context, opts ...grpc.CallOption) (StreamCollector_StreamMetricsClient, error) { + stream, err := grpc.NewClientStream(ctx, &_StreamCollector_serviceDesc.Streams[0], c.cc, "/rpc.StreamCollector/StreamMetrics", opts...) + if err != nil { + return nil, err + } + x := &streamCollectorStreamMetricsClient{stream} + return x, nil +} + +type StreamCollector_StreamMetricsClient interface { + Send(*CollectArg) error + Recv() (*CollectReply, error) + grpc.ClientStream +} + +type streamCollectorStreamMetricsClient struct { + grpc.ClientStream +} + +func (x *streamCollectorStreamMetricsClient) Send(m *CollectArg) error { + return x.ClientStream.SendMsg(m) +} + +func (x *streamCollectorStreamMetricsClient) Recv() (*CollectReply, error) { + m := new(CollectReply) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *streamCollectorClient) GetMetricTypes(ctx context.Context, in *GetMetricTypesArg, opts ...grpc.CallOption) (*MetricsReply, error) { + out := new(MetricsReply) + err := grpc.Invoke(ctx, "/rpc.StreamCollector/GetMetricTypes", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *streamCollectorClient) Ping(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ErrReply, error) { + out := new(ErrReply) + err := grpc.Invoke(ctx, "/rpc.StreamCollector/Ping", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *streamCollectorClient) Kill(ctx context.Context, in *KillArg, opts ...grpc.CallOption) (*ErrReply, error) { + out := new(ErrReply) + err := grpc.Invoke(ctx, "/rpc.StreamCollector/Kill", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *streamCollectorClient) GetConfigPolicy(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*GetConfigPolicyReply, error) { + out := new(GetConfigPolicyReply) + err := grpc.Invoke(ctx, "/rpc.StreamCollector/GetConfigPolicy", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Server API for StreamCollector service + +type StreamCollectorServer interface { + StreamMetrics(StreamCollector_StreamMetricsServer) error + GetMetricTypes(context.Context, *GetMetricTypesArg) (*MetricsReply, error) + Ping(context.Context, *Empty) (*ErrReply, error) + Kill(context.Context, *KillArg) (*ErrReply, error) + GetConfigPolicy(context.Context, *Empty) (*GetConfigPolicyReply, error) +} + +func RegisterStreamCollectorServer(s *grpc.Server, srv StreamCollectorServer) { + s.RegisterService(&_StreamCollector_serviceDesc, srv) +} + +func _StreamCollector_StreamMetrics_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(StreamCollectorServer).StreamMetrics(&streamCollectorStreamMetricsServer{stream}) +} + +type StreamCollector_StreamMetricsServer interface { + Send(*CollectReply) error + Recv() (*CollectArg, error) + grpc.ServerStream +} + +type streamCollectorStreamMetricsServer struct { + grpc.ServerStream +} + +func (x *streamCollectorStreamMetricsServer) Send(m *CollectReply) error { + return x.ServerStream.SendMsg(m) +} + +func (x *streamCollectorStreamMetricsServer) Recv() (*CollectArg, error) { + m := new(CollectArg) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _StreamCollector_GetMetricTypes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetMetricTypesArg) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(StreamCollectorServer).GetMetricTypes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/rpc.StreamCollector/GetMetricTypes", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(StreamCollectorServer).GetMetricTypes(ctx, req.(*GetMetricTypesArg)) + } + return interceptor(ctx, in, info, handler) +} + +func _StreamCollector_Ping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Empty) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(StreamCollectorServer).Ping(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/rpc.StreamCollector/Ping", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(StreamCollectorServer).Ping(ctx, req.(*Empty)) + } + return interceptor(ctx, in, info, handler) +} + +func _StreamCollector_Kill_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(KillArg) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(StreamCollectorServer).Kill(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/rpc.StreamCollector/Kill", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(StreamCollectorServer).Kill(ctx, req.(*KillArg)) + } + return interceptor(ctx, in, info, handler) +} + +func _StreamCollector_GetConfigPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Empty) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(StreamCollectorServer).GetConfigPolicy(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/rpc.StreamCollector/GetConfigPolicy", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(StreamCollectorServer).GetConfigPolicy(ctx, req.(*Empty)) + } + return interceptor(ctx, in, info, handler) +} + +var _StreamCollector_serviceDesc = grpc.ServiceDesc{ + ServiceName: "rpc.StreamCollector", + HandlerType: (*StreamCollectorServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetMetricTypes", + Handler: _StreamCollector_GetMetricTypes_Handler, + }, + { + MethodName: "Ping", + Handler: _StreamCollector_Ping_Handler, + }, + { + MethodName: "Kill", + Handler: _StreamCollector_Kill_Handler, + }, + { + MethodName: "GetConfigPolicy", + Handler: _StreamCollector_GetConfigPolicy_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "StreamMetrics", + Handler: _StreamCollector_StreamMetrics_Handler, + ServerStreams: true, + ClientStreams: true, + }, + }, + Metadata: fileDescriptor0, +} + func init() { proto.RegisterFile("github.com/intelsdi-x/snap/control/plugin/rpc/plugin.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 1364 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xcc, 0x58, 0xcd, 0x6e, 0xdb, 0x46, - 0x17, 0x15, 0x45, 0xfd, 0xf1, 0x52, 0x92, 0xed, 0x41, 0xbe, 0x7c, 0xaa, 0x92, 0x20, 0x0a, 0xd3, - 0x24, 0x4a, 0x93, 0x4a, 0xad, 0x9c, 0xa6, 0x89, 0xd3, 0x2e, 0x92, 0xc6, 0xb5, 0x9d, 0xd4, 0x81, - 0xc0, 0xb8, 0xd9, 0x14, 0x68, 0x40, 0x51, 0x63, 0x99, 0x28, 0x45, 0xb2, 0x43, 0x32, 0xb0, 0x5e, - 0xa1, 0x6f, 0x50, 0xa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, 0x9e, 0x94, - 0x30, 0xaa, 0xb0, 0x3f, 0x36, 0xb6, 0xff, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x53, 0x2e, 0xe5, 0xce, - 0x16, 0x11, 0x00, 0x00, + // 1532 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xdc, 0x58, 0x4b, 0x6f, 0xdb, 0xc6, + 0x16, 0x16, 0x4d, 0xbd, 0x78, 0x28, 0xf9, 0x31, 0xc8, 0xcd, 0xd5, 0x55, 0x12, 0x44, 0xa1, 0x6f, + 0x12, 0xe5, 0x71, 0xe5, 0x5c, 0x39, 0x75, 0x13, 0xa7, 0x5d, 0x38, 0xb1, 0x1b, 0x27, 0xa9, 0x53, + 0x83, 0x71, 0xb3, 0x29, 0xd0, 0x60, 0x24, 0x8f, 0x65, 0x22, 0x7c, 0x75, 0x48, 0x06, 0xf6, 0x5f, + 0xe8, 0xb6, 0xab, 0x02, 0x05, 0x0a, 0xf4, 0x17, 0x74, 0xdd, 0x55, 0x17, 0x5d, 0x14, 0xfd, 0x13, + 0xfd, 0x2b, 0xc5, 0x3c, 0x28, 0x0e, 0x29, 0x29, 0xb2, 0x17, 0x05, 0x82, 0xee, 0x78, 0x5e, 0x9f, + 0xce, 0xf9, 0xce, 0x99, 0x21, 0x8f, 0x60, 0x73, 0xe4, 0xc4, 0xc7, 0xc9, 0xa0, 0x37, 0x0c, 0xbc, + 0x35, 0xc7, 0x8f, 0x89, 0x1b, 0x1d, 0x3a, 0xff, 0x3b, 0x59, 0x8b, 0x7c, 0x1c, 0xae, 0x0d, 0x03, + 0x3f, 0xa6, 0x81, 0xbb, 0x16, 0xba, 0xc9, 0xc8, 0xf1, 0xd7, 0x68, 0x38, 0x94, 0x8f, 0xbd, 0x90, + 0x06, 0x71, 0x80, 0x74, 0x1a, 0x0e, 0xad, 0x9f, 0x35, 0x80, 0x27, 0x81, 0xeb, 0x92, 0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3b, 0x6b, 0x6f, 0xc9, 0xa9, 0x3c, 0x2f, 0xec, 0x91, 0x9d, 0x21, 0x7e, 0x6c, 0xe4, 0x39, 0x11, + 0xc2, 0xe6, 0xc2, 0x03, 0xed, 0x71, 0x15, 0xca, 0x0c, 0xd4, 0xfa, 0x53, 0x07, 0x63, 0x3c, 0x50, + 0xa8, 0x0f, 0xd5, 0x67, 0x7e, 0xbc, 0x87, 0x43, 0x39, 0xbc, 0xed, 0xfc, 0xc0, 0xf5, 0x84, 0x51, + 0x0c, 0x45, 0xd5, 0xe1, 0x02, 0x7a, 0x04, 0xc6, 0x2b, 0xde, 0x22, 0x16, 0xb6, 0xc0, 0xc3, 0xae, + 0x14, 0xc2, 0xc6, 0x76, 0x11, 0x69, 0x44, 0xa9, 0x8c, 0x1e, 0x40, 0xfd, 0x33, 0xd6, 0x16, 0x16, + 0xab, 0xf3, 0xd8, 0xcb, 0x85, 0xd8, 0xd4, 0x2c, 0x42, 0xeb, 0x47, 0x52, 0x44, 0x1f, 0x41, 0xed, + 0x71, 0x10, 0xb8, 0x2c, 0xb0, 0xcc, 0x03, 0x2f, 0x15, 0x02, 0xa5, 0x55, 0xc4, 0xd5, 0x06, 0x42, + 0x6a, 0x3f, 0x04, 0x53, 0x29, 0x62, 0x1e, 0x65, 0xba, 0x42, 0x59, 0xfb, 0x13, 0x58, 0xcc, 0x17, + 0x72, 0x1e, 0xc2, 0xdb, 0x8f, 0xa0, 0x99, 0x2b, 0x65, 0x5e, 0xb0, 0xa6, 0x06, 0x6f, 0x42, 0x43, + 0x2d, 0x67, 0x5e, 0x6c, 0x5d, 0x89, 0xb5, 0xae, 0x41, 0xed, 0x85, 0xe3, 0xba, 0xec, 0xe2, 0xbb, + 0x08, 0x55, 0x9b, 0xe0, 0x28, 0xf0, 0x65, 0x64, 0x95, 0x72, 0x89, 0xdd, 0x60, 0x17, 0x9e, 0x92, + 0x58, 0x70, 0xb7, 0x1f, 0xb8, 0xce, 0xf0, 0xf4, 0x3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 0xab, 0xd4, 0xff, 0x4d, 0x03, 0x83, + 0xed, 0xa1, 0x24, 0x8a, 0x02, 0x8a, 0xd6, 0xa0, 0x26, 0x05, 0xc9, 0x42, 0xb6, 0xa5, 0x7e, 0xd8, + 0x65, 0xfc, 0xca, 0xca, 0x48, 0x06, 0xae, 0x13, 0x1d, 0x13, 0x8a, 0xee, 0x40, 0x4d, 0x0a, 0x93, + 0x65, 0x4c, 0xfc, 0xec, 0x87, 0x52, 0xc2, 0x77, 0x0b, 0xb0, 0xf4, 0x2a, 0xa6, 0x04, 0x7b, 0xd9, + 0x70, 0x3e, 0x84, 0xa6, 0x50, 0xe5, 0x67, 0x33, 0xfb, 0x4f, 0x48, 0x76, 0x45, 0xfd, 0xcb, 0xc5, + 0x2a, 0x75, 0xb5, 0x7b, 0xda, 0x3f, 0x64, 0x3e, 0x07, 0x55, 0xfe, 0x77, 0xd8, 0xfa, 0x5f, 0x01, + 0x00, 0x00, 0xff, 0xff, 0x04, 0x49, 0xf2, 0x93, 0x4c, 0x13, 0x00, 0x00, } diff --git a/control/plugin/rpc/plugin.proto b/control/plugin/rpc/plugin.proto index 53fa45a6a..eb8c97c5d 100644 --- a/control/plugin/rpc/plugin.proto +++ b/control/plugin/rpc/plugin.proto @@ -42,9 +42,36 @@ service Publisher { rpc GetConfigPolicy(Empty) returns (GetConfigPolicyReply) {} } -message Empty{ +service StreamCollector { + rpc StreamMetrics(stream CollectArg) returns (stream CollectReply) {} + rpc GetMetricTypes(GetMetricTypesArg) returns (MetricsReply) {} + rpc Ping(Empty) returns (ErrReply) {} + rpc Kill(KillArg) returns (ErrReply) {} + rpc GetConfigPolicy(Empty) returns (GetConfigPolicyReply) {} } +// Request that can be passed a stream collector +message CollectArg{ + // Request these metrics to be collected on the plugins schedule + MetricsArg Metrics_Arg = 1; + // Set minimum collection duration --duration in ns + int64 MaxCollectDuration = 2; + // Set max number of metrics to buffer before forcing send + // 0 means no forced send + int64 MaxMetricsBuffer = 3; + // Blob of domain specific info + bytes Other = 4; +} + +// Replies that can be sent from a stream collector +message CollectReply{ + // Reply with metrics + MetricsReply Metrics_Reply = 1; + ErrReply Error = 2; +} + +message Empty{} + message ErrReply { string error = 1; }