add metrics endpoint

This commit is contained in:
rushtehrani
2020-02-11 00:37:36 -08:00
parent 96364938cd
commit bf9ad3ddce
6 changed files with 454 additions and 68 deletions

View File

@@ -324,6 +324,100 @@ func (m *GetWorkflowLogsRequest) GetContainerName() string {
return ""
}
type GetWorkflowMetricsRequest struct {
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
PodName string `protobuf:"bytes,3,opt,name=podName,proto3" json:"podName,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetWorkflowMetricsRequest) Reset() { *m = GetWorkflowMetricsRequest{} }
func (m *GetWorkflowMetricsRequest) String() string { return proto.CompactTextString(m) }
func (*GetWorkflowMetricsRequest) ProtoMessage() {}
func (*GetWorkflowMetricsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_892c7f566756b0be, []int{6}
}
func (m *GetWorkflowMetricsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetWorkflowMetricsRequest.Unmarshal(m, b)
}
func (m *GetWorkflowMetricsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetWorkflowMetricsRequest.Marshal(b, m, deterministic)
}
func (m *GetWorkflowMetricsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetWorkflowMetricsRequest.Merge(m, src)
}
func (m *GetWorkflowMetricsRequest) XXX_Size() int {
return xxx_messageInfo_GetWorkflowMetricsRequest.Size(m)
}
func (m *GetWorkflowMetricsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetWorkflowMetricsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetWorkflowMetricsRequest proto.InternalMessageInfo
func (m *GetWorkflowMetricsRequest) GetNamespace() string {
if m != nil {
return m.Namespace
}
return ""
}
func (m *GetWorkflowMetricsRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *GetWorkflowMetricsRequest) GetPodName() string {
if m != nil {
return m.PodName
}
return ""
}
type GetWorkflowMetricsResponse struct {
Metrics string `protobuf:"bytes,1,opt,name=metrics,proto3" json:"metrics,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetWorkflowMetricsResponse) Reset() { *m = GetWorkflowMetricsResponse{} }
func (m *GetWorkflowMetricsResponse) String() string { return proto.CompactTextString(m) }
func (*GetWorkflowMetricsResponse) ProtoMessage() {}
func (*GetWorkflowMetricsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_892c7f566756b0be, []int{7}
}
func (m *GetWorkflowMetricsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetWorkflowMetricsResponse.Unmarshal(m, b)
}
func (m *GetWorkflowMetricsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetWorkflowMetricsResponse.Marshal(b, m, deterministic)
}
func (m *GetWorkflowMetricsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetWorkflowMetricsResponse.Merge(m, src)
}
func (m *GetWorkflowMetricsResponse) XXX_Size() int {
return xxx_messageInfo_GetWorkflowMetricsResponse.Size(m)
}
func (m *GetWorkflowMetricsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetWorkflowMetricsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetWorkflowMetricsResponse proto.InternalMessageInfo
func (m *GetWorkflowMetricsResponse) GetMetrics() string {
if m != nil {
return m.Metrics
}
return ""
}
type ListWorkflowsRequest struct {
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
WorkflowTemplateUid string `protobuf:"bytes,2,opt,name=workflowTemplateUid,proto3" json:"workflowTemplateUid,omitempty"`
@@ -337,7 +431,7 @@ func (m *ListWorkflowsRequest) Reset() { *m = ListWorkflowsRequest{} }
func (m *ListWorkflowsRequest) String() string { return proto.CompactTextString(m) }
func (*ListWorkflowsRequest) ProtoMessage() {}
func (*ListWorkflowsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_892c7f566756b0be, []int{6}
return fileDescriptor_892c7f566756b0be, []int{8}
}
func (m *ListWorkflowsRequest) XXX_Unmarshal(b []byte) error {
@@ -391,7 +485,7 @@ func (m *ListWorkflowsResponse) Reset() { *m = ListWorkflowsResponse{} }
func (m *ListWorkflowsResponse) String() string { return proto.CompactTextString(m) }
func (*ListWorkflowsResponse) ProtoMessage() {}
func (*ListWorkflowsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_892c7f566756b0be, []int{7}
return fileDescriptor_892c7f566756b0be, []int{9}
}
func (m *ListWorkflowsResponse) XXX_Unmarshal(b []byte) error {
@@ -438,7 +532,7 @@ func (m *LogEntry) Reset() { *m = LogEntry{} }
func (m *LogEntry) String() string { return proto.CompactTextString(m) }
func (*LogEntry) ProtoMessage() {}
func (*LogEntry) Descriptor() ([]byte, []int) {
return fileDescriptor_892c7f566756b0be, []int{8}
return fileDescriptor_892c7f566756b0be, []int{10}
}
func (m *LogEntry) XXX_Unmarshal(b []byte) error {
@@ -489,7 +583,7 @@ func (m *Workflow) Reset() { *m = Workflow{} }
func (m *Workflow) String() string { return proto.CompactTextString(m) }
func (*Workflow) ProtoMessage() {}
func (*Workflow) Descriptor() ([]byte, []int) {
return fileDescriptor_892c7f566756b0be, []int{9}
return fileDescriptor_892c7f566756b0be, []int{11}
}
func (m *Workflow) XXX_Unmarshal(b []byte) error {
@@ -564,7 +658,7 @@ func (m *WorkflowParameter) Reset() { *m = WorkflowParameter{} }
func (m *WorkflowParameter) String() string { return proto.CompactTextString(m) }
func (*WorkflowParameter) ProtoMessage() {}
func (*WorkflowParameter) Descriptor() ([]byte, []int) {
return fileDescriptor_892c7f566756b0be, []int{10}
return fileDescriptor_892c7f566756b0be, []int{12}
}
func (m *WorkflowParameter) XXX_Unmarshal(b []byte) error {
@@ -606,6 +700,8 @@ func init() {
proto.RegisterType((*ResubmitWorkflowRequest)(nil), "api.ResubmitWorkflowRequest")
proto.RegisterType((*TerminateWorkflowRequest)(nil), "api.TerminateWorkflowRequest")
proto.RegisterType((*GetWorkflowLogsRequest)(nil), "api.GetWorkflowLogsRequest")
proto.RegisterType((*GetWorkflowMetricsRequest)(nil), "api.GetWorkflowMetricsRequest")
proto.RegisterType((*GetWorkflowMetricsResponse)(nil), "api.GetWorkflowMetricsResponse")
proto.RegisterType((*ListWorkflowsRequest)(nil), "api.ListWorkflowsRequest")
proto.RegisterType((*ListWorkflowsResponse)(nil), "api.ListWorkflowsResponse")
proto.RegisterType((*LogEntry)(nil), "api.LogEntry")
@@ -616,69 +712,73 @@ func init() {
func init() { proto.RegisterFile("workflow.proto", fileDescriptor_892c7f566756b0be) }
var fileDescriptor_892c7f566756b0be = []byte{
// 988 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x5f, 0x6f, 0x13, 0x47,
0x10, 0xd7, 0xc6, 0x84, 0x26, 0x83, 0x02, 0xc9, 0x90, 0xc4, 0xee, 0x91, 0xa8, 0xe9, 0x42, 0xa5,
0xa4, 0x20, 0x5f, 0x30, 0x7f, 0x84, 0x02, 0x48, 0x0d, 0x28, 0x50, 0xa9, 0x56, 0x55, 0xb9, 0x50,
0x54, 0xfa, 0x50, 0x36, 0xf6, 0xc6, 0x9c, 0xea, 0xfb, 0xd3, 0xdb, 0xb5, 0x23, 0xe4, 0xfa, 0xa1,
0xed, 0x4b, 0xd5, 0xd7, 0xf6, 0xad, 0x2f, 0x55, 0x9f, 0xf8, 0x08, 0x7d, 0xee, 0x57, 0xe0, 0x2b,
0x94, 0xef, 0x81, 0x6e, 0x6f, 0xf7, 0xb8, 0x3b, 0x9f, 0x83, 0x8f, 0xe4, 0xcd, 0x3b, 0x33, 0xf7,
0x9b, 0xdf, 0xcc, 0xec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, 0xfa, 0x9e, 0xd1, 0xe6, 0x49, 0xd6, 0x57, 0x50, 0xc4, 0x2b, 0x02, 0xe7,
0x53, 0x2b, 0x9e, 0xd8, 0x3f, 0xca, 0x2f, 0xff, 0x94, 0xbc, 0x7f, 0x8d, 0x07, 0x33, 0xc2, 0x46,
0x39, 0xe2, 0x11, 0xcf, 0xa7, 0x0f, 0x71, 0xaf, 0xfc, 0x57, 0xa9, 0xe9, 0x99, 0x61, 0xe1, 0xbf,
0x04, 0xd6, 0xd2, 0x62, 0x9c, 0x1b, 0x8c, 0xc0, 0xcd, 0x31, 0xbd, 0xce, 0x87, 0x98, 0x3a, 0xb7,
0xa6, 0x88, 0xd4, 0x42, 0x7f, 0x5f, 0x95, 0x7e, 0x17, 0x6f, 0x1f, 0xa3, 0x08, 0xfc, 0x93, 0x64,
0xff, 0x30, 0x99, 0x6c, 0x02, 0x3f, 0x9e, 0xc8, 0x24, 0x21, 0x4b, 0x8f, 0x0a, 0xd1, 0x2c, 0xaf,
0x2b, 0x96, 0x75, 0x2c, 0xb5, 0xe6, 0xf8, 0x92, 0x40, 0x75, 0x37, 0x6c, 0x3f, 0x77, 0x06, 0xe3,
0x9a, 0x73, 0x51, 0x65, 0x9d, 0xe0, 0x35, 0xd4, 0x2e, 0x1d, 0x1d, 0xa4, 0xc9, 0xdd, 0x53, 0xe4,
0xee, 0x58, 0x3b, 0xef, 0xd1, 0x42, 0x16, 0x63, 0xef, 0x9f, 0x56, 0x5a, 0x7b, 0xed, 0x4d, 0x00,
0x00, 0x00, 0xff, 0xff, 0x6c, 0xf4, 0xb8, 0xe7, 0xa2, 0x0d, 0x00, 0x00,
// 1045 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x96, 0xcf, 0x6f, 0x13, 0x47,
0x14, 0xc7, 0x35, 0x31, 0xa1, 0xc9, 0x43, 0x81, 0xf0, 0x48, 0x62, 0xb3, 0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 0x43, 0x57, 0x4a, 0x7e, 0x8a, 0xa9, 0x73, 0x7d, 0x8c, 0x99, 0x5a, 0xea, 0x76, 0x54,
0xe9, 0x77, 0xf0, 0xd6, 0x31, 0x8a, 0xc0, 0xdf, 0x49, 0xf6, 0x4d, 0x67, 0xb2, 0x09, 0x7c, 0x7f,
0x24, 0x49, 0x02, 0x4b, 0x0f, 0x9b, 0xa2, 0x29, 0xaf, 0x2b, 0xca, 0x2a, 0x4e, 0x74, 0xcc, 0xf1,
0x2f, 0x02, 0xe5, 0xed, 0xb0, 0xf9, 0xd4, 0xe9, 0x0d, 0x6b, 0xce, 0x45, 0x95, 0x75, 0x84, 0xd7,
0xa0, 0x5d, 0x3a, 0x7c, 0x92, 0x86, 0xbb, 0xab, 0xe0, 0x6e, 0x5b, 0x5b, 0x47, 0x58, 0x42, 0x16,
0xc7, 0xde, 0x3b, 0xa9, 0xb4, 0xf6, 0xda, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, 0x64, 0xe8, 0xfa,
0x01, 0xe6, 0x0e, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
@@ -699,6 +799,7 @@ type WorkflowServiceClient interface {
ListWorkflows(ctx context.Context, in *ListWorkflowsRequest, opts ...grpc.CallOption) (*ListWorkflowsResponse, error)
WatchWorkflow(ctx context.Context, in *WatchWorkflowRequest, opts ...grpc.CallOption) (WorkflowService_WatchWorkflowClient, error)
GetWorkflowLogs(ctx context.Context, in *GetWorkflowLogsRequest, opts ...grpc.CallOption) (WorkflowService_GetWorkflowLogsClient, error)
GetWorkflowMetrics(ctx context.Context, in *GetWorkflowMetricsRequest, opts ...grpc.CallOption) (*GetWorkflowMetricsResponse, error)
ResubmitWorkflow(ctx context.Context, in *ResubmitWorkflowRequest, opts ...grpc.CallOption) (*Workflow, error)
TerminateWorkflow(ctx context.Context, in *TerminateWorkflowRequest, opts ...grpc.CallOption) (*empty.Empty, error)
CreateWorkflowTemplate(ctx context.Context, in *CreateWorkflowTemplateRequest, opts ...grpc.CallOption) (*WorkflowTemplate, error)
@@ -809,6 +910,15 @@ func (x *workflowServiceGetWorkflowLogsClient) Recv() (*LogEntry, error) {
return m, nil
}
func (c *workflowServiceClient) GetWorkflowMetrics(ctx context.Context, in *GetWorkflowMetricsRequest, opts ...grpc.CallOption) (*GetWorkflowMetricsResponse, error) {
out := new(GetWorkflowMetricsResponse)
err := c.cc.Invoke(ctx, "/api.WorkflowService/GetWorkflowMetrics", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *workflowServiceClient) ResubmitWorkflow(ctx context.Context, in *ResubmitWorkflowRequest, opts ...grpc.CallOption) (*Workflow, error) {
out := new(Workflow)
err := c.cc.Invoke(ctx, "/api.WorkflowService/ResubmitWorkflow", in, out, opts...)
@@ -898,6 +1008,7 @@ type WorkflowServiceServer interface {
ListWorkflows(context.Context, *ListWorkflowsRequest) (*ListWorkflowsResponse, error)
WatchWorkflow(*WatchWorkflowRequest, WorkflowService_WatchWorkflowServer) error
GetWorkflowLogs(*GetWorkflowLogsRequest, WorkflowService_GetWorkflowLogsServer) error
GetWorkflowMetrics(context.Context, *GetWorkflowMetricsRequest) (*GetWorkflowMetricsResponse, error)
ResubmitWorkflow(context.Context, *ResubmitWorkflowRequest) (*Workflow, error)
TerminateWorkflow(context.Context, *TerminateWorkflowRequest) (*empty.Empty, error)
CreateWorkflowTemplate(context.Context, *CreateWorkflowTemplateRequest) (*WorkflowTemplate, error)
@@ -928,6 +1039,9 @@ func (*UnimplementedWorkflowServiceServer) WatchWorkflow(req *WatchWorkflowReque
func (*UnimplementedWorkflowServiceServer) GetWorkflowLogs(req *GetWorkflowLogsRequest, srv WorkflowService_GetWorkflowLogsServer) error {
return status.Errorf(codes.Unimplemented, "method GetWorkflowLogs not implemented")
}
func (*UnimplementedWorkflowServiceServer) GetWorkflowMetrics(ctx context.Context, req *GetWorkflowMetricsRequest) (*GetWorkflowMetricsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetWorkflowMetrics not implemented")
}
func (*UnimplementedWorkflowServiceServer) ResubmitWorkflow(ctx context.Context, req *ResubmitWorkflowRequest) (*Workflow, error) {
return nil, status.Errorf(codes.Unimplemented, "method ResubmitWorkflow not implemented")
}
@@ -1056,6 +1170,24 @@ func (x *workflowServiceGetWorkflowLogsServer) Send(m *LogEntry) error {
return x.ServerStream.SendMsg(m)
}
func _WorkflowService_GetWorkflowMetrics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetWorkflowMetricsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WorkflowServiceServer).GetWorkflowMetrics(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.WorkflowService/GetWorkflowMetrics",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WorkflowServiceServer).GetWorkflowMetrics(ctx, req.(*GetWorkflowMetricsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _WorkflowService_ResubmitWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ResubmitWorkflowRequest)
if err := dec(in); err != nil {
@@ -1234,6 +1366,10 @@ var _WorkflowService_serviceDesc = grpc.ServiceDesc{
MethodName: "ListWorkflows",
Handler: _WorkflowService_ListWorkflows_Handler,
},
{
MethodName: "GetWorkflowMetrics",
Handler: _WorkflowService_GetWorkflowMetrics_Handler,
},
{
MethodName: "ResubmitWorkflow",
Handler: _WorkflowService_ResubmitWorkflow_Handler,