Class MetricsService
- java.lang.Object
-
- io.envoyproxy.envoy.service.metrics.v2.MetricsService
-
- All Implemented Interfaces:
com.google.protobuf.Service
- Direct Known Subclasses:
MetricsService.Stub
public abstract class MetricsService extends Object implements com.google.protobuf.Service
Service for streaming metrics to server that consumes the metrics data. It uses Prometheus metric data model as a standard to represent metrics information.
Protobuf serviceenvoy.service.metrics.v2.MetricsService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceMetricsService.BlockingInterfacestatic interfaceMetricsService.Interfacestatic classMetricsService.Stub
-
Constructor Summary
Constructors Modifier Constructor Description protectedMetricsService()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidcallMethod(com.google.protobuf.Descriptors.MethodDescriptor method, com.google.protobuf.RpcController controller, com.google.protobuf.Message request, com.google.protobuf.RpcCallback<com.google.protobuf.Message> done)static com.google.protobuf.Descriptors.ServiceDescriptorgetDescriptor()com.google.protobuf.Descriptors.ServiceDescriptorgetDescriptorForType()com.google.protobuf.MessagegetRequestPrototype(com.google.protobuf.Descriptors.MethodDescriptor method)com.google.protobuf.MessagegetResponsePrototype(com.google.protobuf.Descriptors.MethodDescriptor method)static MetricsService.BlockingInterfacenewBlockingStub(com.google.protobuf.BlockingRpcChannel channel)static com.google.protobuf.BlockingServicenewReflectiveBlockingService(MetricsService.BlockingInterface impl)static com.google.protobuf.ServicenewReflectiveService(MetricsService.Interface impl)static MetricsService.StubnewStub(com.google.protobuf.RpcChannel channel)abstract voidstreamMetrics(com.google.protobuf.RpcController controller, StreamMetricsMessage request, com.google.protobuf.RpcCallback<StreamMetricsResponse> done)Envoy will connect and send StreamMetricsMessage messages forever.
-
-
-
Method Detail
-
newReflectiveService
public static com.google.protobuf.Service newReflectiveService(MetricsService.Interface impl)
-
newReflectiveBlockingService
public static com.google.protobuf.BlockingService newReflectiveBlockingService(MetricsService.BlockingInterface impl)
-
streamMetrics
public abstract void streamMetrics(com.google.protobuf.RpcController controller, StreamMetricsMessage request, com.google.protobuf.RpcCallback<StreamMetricsResponse> done)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.
rpc StreamMetrics(stream .envoy.service.metrics.v2.StreamMetricsMessage) returns (.envoy.service.metrics.v2.StreamMetricsResponse);
-
getDescriptor
public static final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptor()
-
getDescriptorForType
public final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Service
-
callMethod
public final void callMethod(com.google.protobuf.Descriptors.MethodDescriptor method, com.google.protobuf.RpcController controller, com.google.protobuf.Message request, com.google.protobuf.RpcCallback<com.google.protobuf.Message> done)- Specified by:
callMethodin interfacecom.google.protobuf.Service
-
getRequestPrototype
public final com.google.protobuf.Message getRequestPrototype(com.google.protobuf.Descriptors.MethodDescriptor method)
- Specified by:
getRequestPrototypein interfacecom.google.protobuf.Service
-
getResponsePrototype
public final com.google.protobuf.Message getResponsePrototype(com.google.protobuf.Descriptors.MethodDescriptor method)
- Specified by:
getResponsePrototypein interfacecom.google.protobuf.Service
-
newStub
public static MetricsService.Stub newStub(com.google.protobuf.RpcChannel channel)
-
newBlockingStub
public static MetricsService.BlockingInterface newBlockingStub(com.google.protobuf.BlockingRpcChannel channel)
-
-