Documentation ¶
Index ¶
- Variables
- func RegisterMetricsServiceServer(s *grpc.Server, srv MetricsServiceServer)
- type MetricsServiceClient
- type MetricsServiceServer
- type MetricsService_StreamMetricsClient
- type MetricsService_StreamMetricsServer
- type StreamMetricsMessage
- func (*StreamMetricsMessage) Descriptor() ([]byte, []int)
- func (m *StreamMetricsMessage) GetEnvoyMetrics() []*prometheus.MetricFamily
- func (m *StreamMetricsMessage) GetIdentifier() *StreamMetricsMessage_Identifier
- func (m *StreamMetricsMessage) Marshal() (dAtA []byte, err error)
- func (m *StreamMetricsMessage) MarshalTo(dAtA []byte) (int, error)
- func (*StreamMetricsMessage) ProtoMessage()
- func (m *StreamMetricsMessage) Reset()
- func (m *StreamMetricsMessage) Size() (n int)
- func (m *StreamMetricsMessage) String() string
- func (m *StreamMetricsMessage) Unmarshal(dAtA []byte) error
- func (m *StreamMetricsMessage) Validate() error
- func (m *StreamMetricsMessage) XXX_DiscardUnknown()
- func (m *StreamMetricsMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *StreamMetricsMessage) XXX_Merge(src proto.Message)
- func (m *StreamMetricsMessage) XXX_Size() int
- func (m *StreamMetricsMessage) XXX_Unmarshal(b []byte) error
- type StreamMetricsMessageValidationError
- type StreamMetricsMessage_Identifier
- func (*StreamMetricsMessage_Identifier) Descriptor() ([]byte, []int)
- func (m *StreamMetricsMessage_Identifier) GetNode() *core.Node
- func (m *StreamMetricsMessage_Identifier) Marshal() (dAtA []byte, err error)
- func (m *StreamMetricsMessage_Identifier) MarshalTo(dAtA []byte) (int, error)
- func (*StreamMetricsMessage_Identifier) ProtoMessage()
- func (m *StreamMetricsMessage_Identifier) Reset()
- func (m *StreamMetricsMessage_Identifier) Size() (n int)
- func (m *StreamMetricsMessage_Identifier) String() string
- func (m *StreamMetricsMessage_Identifier) Unmarshal(dAtA []byte) error
- func (m *StreamMetricsMessage_Identifier) Validate() error
- func (m *StreamMetricsMessage_Identifier) XXX_DiscardUnknown()
- func (m *StreamMetricsMessage_Identifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *StreamMetricsMessage_Identifier) XXX_Merge(src proto.Message)
- func (m *StreamMetricsMessage_Identifier) XXX_Size() int
- func (m *StreamMetricsMessage_Identifier) XXX_Unmarshal(b []byte) error
- type StreamMetricsMessage_IdentifierValidationError
- type StreamMetricsResponse
- func (*StreamMetricsResponse) Descriptor() ([]byte, []int)
- func (m *StreamMetricsResponse) Marshal() (dAtA []byte, err error)
- func (m *StreamMetricsResponse) MarshalTo(dAtA []byte) (int, error)
- func (*StreamMetricsResponse) ProtoMessage()
- func (m *StreamMetricsResponse) Reset()
- func (m *StreamMetricsResponse) Size() (n int)
- func (m *StreamMetricsResponse) String() string
- func (m *StreamMetricsResponse) Unmarshal(dAtA []byte) error
- func (m *StreamMetricsResponse) Validate() error
- func (m *StreamMetricsResponse) XXX_DiscardUnknown()
- func (m *StreamMetricsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *StreamMetricsResponse) XXX_Merge(src proto.Message)
- func (m *StreamMetricsResponse) XXX_Size() int
- func (m *StreamMetricsResponse) XXX_Unmarshal(b []byte) error
- type StreamMetricsResponseValidationError
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthMetricsService = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMetricsService = fmt.Errorf("proto: integer overflow") )
Functions ¶
func RegisterMetricsServiceServer ¶
func RegisterMetricsServiceServer(s *grpc.Server, srv MetricsServiceServer)
Types ¶
type MetricsServiceClient ¶
type MetricsServiceClient interface { // Envoy will connect and send StreamMetricsMessage messages forever. It does not expect any // response to be sent as nothing would be done in the case of failure. StreamMetrics(ctx context.Context, opts ...grpc.CallOption) (MetricsService_StreamMetricsClient, error) }
func NewMetricsServiceClient ¶
func NewMetricsServiceClient(cc *grpc.ClientConn) MetricsServiceClient
type MetricsServiceServer ¶
type MetricsServiceServer interface { // Envoy will connect and send StreamMetricsMessage messages forever. It does not expect any // response to be sent as nothing would be done in the case of failure. StreamMetrics(MetricsService_StreamMetricsServer) error }
type MetricsService_StreamMetricsClient ¶
type MetricsService_StreamMetricsClient interface { Send(*StreamMetricsMessage) error CloseAndRecv() (*StreamMetricsResponse, error) grpc.ClientStream }
type MetricsService_StreamMetricsServer ¶
type MetricsService_StreamMetricsServer interface { SendAndClose(*StreamMetricsResponse) error Recv() (*StreamMetricsMessage, error) grpc.ServerStream }
type StreamMetricsMessage ¶
type StreamMetricsMessage struct { // Identifier data effectively is a structured metadata. As a performance optimization this will // only be sent in the first message on the stream. Identifier *StreamMetricsMessage_Identifier `protobuf:"bytes,1,opt,name=identifier" json:"identifier,omitempty"` // A list of metric entries EnvoyMetrics []*prometheus.MetricFamily `protobuf:"bytes,2,rep,name=envoy_metrics,json=envoyMetrics" json:"envoy_metrics,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*StreamMetricsMessage) Descriptor ¶
func (*StreamMetricsMessage) Descriptor() ([]byte, []int)
func (*StreamMetricsMessage) GetEnvoyMetrics ¶
func (m *StreamMetricsMessage) GetEnvoyMetrics() []*prometheus.MetricFamily
func (*StreamMetricsMessage) GetIdentifier ¶
func (m *StreamMetricsMessage) GetIdentifier() *StreamMetricsMessage_Identifier
func (*StreamMetricsMessage) Marshal ¶ added in v0.5.0
func (m *StreamMetricsMessage) Marshal() (dAtA []byte, err error)
func (*StreamMetricsMessage) MarshalTo ¶ added in v0.5.0
func (m *StreamMetricsMessage) MarshalTo(dAtA []byte) (int, error)
func (*StreamMetricsMessage) ProtoMessage ¶
func (*StreamMetricsMessage) ProtoMessage()
func (*StreamMetricsMessage) Reset ¶
func (m *StreamMetricsMessage) Reset()
func (*StreamMetricsMessage) Size ¶ added in v0.5.0
func (m *StreamMetricsMessage) Size() (n int)
func (*StreamMetricsMessage) String ¶
func (m *StreamMetricsMessage) String() string
func (*StreamMetricsMessage) Unmarshal ¶ added in v0.5.0
func (m *StreamMetricsMessage) Unmarshal(dAtA []byte) error
func (*StreamMetricsMessage) Validate ¶
func (m *StreamMetricsMessage) Validate() error
Validate checks the field values on StreamMetricsMessage with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*StreamMetricsMessage) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *StreamMetricsMessage) XXX_DiscardUnknown()
func (*StreamMetricsMessage) XXX_Marshal ¶ added in v0.5.0
func (m *StreamMetricsMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StreamMetricsMessage) XXX_Merge ¶ added in v0.5.0
func (dst *StreamMetricsMessage) XXX_Merge(src proto.Message)
func (*StreamMetricsMessage) XXX_Size ¶ added in v0.5.0
func (m *StreamMetricsMessage) XXX_Size() int
func (*StreamMetricsMessage) XXX_Unmarshal ¶ added in v0.5.0
func (m *StreamMetricsMessage) XXX_Unmarshal(b []byte) error
type StreamMetricsMessageValidationError ¶
StreamMetricsMessageValidationError is the validation error returned by StreamMetricsMessage.Validate if the designated constraints aren't met.
func (StreamMetricsMessageValidationError) Error ¶
func (e StreamMetricsMessageValidationError) Error() string
Error satisfies the builtin error interface
type StreamMetricsMessage_Identifier ¶
type StreamMetricsMessage_Identifier struct { // The node sending metrics over the stream. Node *core.Node `protobuf:"bytes,1,opt,name=node" json:"node,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*StreamMetricsMessage_Identifier) Descriptor ¶
func (*StreamMetricsMessage_Identifier) Descriptor() ([]byte, []int)
func (*StreamMetricsMessage_Identifier) GetNode ¶
func (m *StreamMetricsMessage_Identifier) GetNode() *core.Node
func (*StreamMetricsMessage_Identifier) Marshal ¶ added in v0.5.0
func (m *StreamMetricsMessage_Identifier) Marshal() (dAtA []byte, err error)
func (*StreamMetricsMessage_Identifier) MarshalTo ¶ added in v0.5.0
func (m *StreamMetricsMessage_Identifier) MarshalTo(dAtA []byte) (int, error)
func (*StreamMetricsMessage_Identifier) ProtoMessage ¶
func (*StreamMetricsMessage_Identifier) ProtoMessage()
func (*StreamMetricsMessage_Identifier) Reset ¶
func (m *StreamMetricsMessage_Identifier) Reset()
func (*StreamMetricsMessage_Identifier) Size ¶ added in v0.5.0
func (m *StreamMetricsMessage_Identifier) Size() (n int)
func (*StreamMetricsMessage_Identifier) String ¶
func (m *StreamMetricsMessage_Identifier) String() string
func (*StreamMetricsMessage_Identifier) Unmarshal ¶ added in v0.5.0
func (m *StreamMetricsMessage_Identifier) Unmarshal(dAtA []byte) error
func (*StreamMetricsMessage_Identifier) Validate ¶
func (m *StreamMetricsMessage_Identifier) Validate() error
Validate checks the field values on StreamMetricsMessage_Identifier with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*StreamMetricsMessage_Identifier) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *StreamMetricsMessage_Identifier) XXX_DiscardUnknown()
func (*StreamMetricsMessage_Identifier) XXX_Marshal ¶ added in v0.5.0
func (m *StreamMetricsMessage_Identifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StreamMetricsMessage_Identifier) XXX_Merge ¶ added in v0.5.0
func (dst *StreamMetricsMessage_Identifier) XXX_Merge(src proto.Message)
func (*StreamMetricsMessage_Identifier) XXX_Size ¶ added in v0.5.0
func (m *StreamMetricsMessage_Identifier) XXX_Size() int
func (*StreamMetricsMessage_Identifier) XXX_Unmarshal ¶ added in v0.5.0
func (m *StreamMetricsMessage_Identifier) XXX_Unmarshal(b []byte) error
type StreamMetricsMessage_IdentifierValidationError ¶
type StreamMetricsMessage_IdentifierValidationError struct { Field string Reason string Cause error Key bool }
StreamMetricsMessage_IdentifierValidationError is the validation error returned by StreamMetricsMessage_Identifier.Validate if the designated constraints aren't met.
func (StreamMetricsMessage_IdentifierValidationError) Error ¶
func (e StreamMetricsMessage_IdentifierValidationError) Error() string
Error satisfies the builtin error interface
type StreamMetricsResponse ¶
type StreamMetricsResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*StreamMetricsResponse) Descriptor ¶
func (*StreamMetricsResponse) Descriptor() ([]byte, []int)
func (*StreamMetricsResponse) Marshal ¶ added in v0.5.0
func (m *StreamMetricsResponse) Marshal() (dAtA []byte, err error)
func (*StreamMetricsResponse) MarshalTo ¶ added in v0.5.0
func (m *StreamMetricsResponse) MarshalTo(dAtA []byte) (int, error)
func (*StreamMetricsResponse) ProtoMessage ¶
func (*StreamMetricsResponse) ProtoMessage()
func (*StreamMetricsResponse) Reset ¶
func (m *StreamMetricsResponse) Reset()
func (*StreamMetricsResponse) Size ¶ added in v0.5.0
func (m *StreamMetricsResponse) Size() (n int)
func (*StreamMetricsResponse) String ¶
func (m *StreamMetricsResponse) String() string
func (*StreamMetricsResponse) Unmarshal ¶ added in v0.5.0
func (m *StreamMetricsResponse) Unmarshal(dAtA []byte) error
func (*StreamMetricsResponse) Validate ¶
func (m *StreamMetricsResponse) Validate() error
Validate checks the field values on StreamMetricsResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*StreamMetricsResponse) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *StreamMetricsResponse) XXX_DiscardUnknown()
func (*StreamMetricsResponse) XXX_Marshal ¶ added in v0.5.0
func (m *StreamMetricsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StreamMetricsResponse) XXX_Merge ¶ added in v0.5.0
func (dst *StreamMetricsResponse) XXX_Merge(src proto.Message)
func (*StreamMetricsResponse) XXX_Size ¶ added in v0.5.0
func (m *StreamMetricsResponse) XXX_Size() int
func (*StreamMetricsResponse) XXX_Unmarshal ¶ added in v0.5.0
func (m *StreamMetricsResponse) XXX_Unmarshal(b []byte) error
type StreamMetricsResponseValidationError ¶
type StreamMetricsResponseValidationError struct { Field string Reason string Cause error Key bool }
StreamMetricsResponseValidationError is the validation error returned by StreamMetricsResponse.Validate if the designated constraints aren't met.
func (StreamMetricsResponseValidationError) Error ¶
func (e StreamMetricsResponseValidationError) Error() string
Error satisfies the builtin error interface