jina.serve.runtimes.monitoring module#

class jina.serve.runtimes.monitoring.MonitoringMixin[source]#

Bases: object

The Monitoring Mixin for pods

class jina.serve.runtimes.monitoring.MonitoringRequestMixin(metrics_registry=None, meter=None, runtime_name=None)[source]#

Bases: object

Mixin for the request handling monitoring

  • metrics_registry (Optional[CollectorRegistry]) – optional metrics registry for prometheus used if we need to expose metrics from the executor or from the data request handler

  • runtime_name (Optional[str]) – optional runtime_name that will be registered during monitoring