docstr: A Metric family and its samples.
  
  This is a base class to be used by instrumentation client. Custom collectors should use ``bentoml.metrics.metrics_core.GaugeMetricFamily``, ``bentoml.metrics.metrics_core.CounterMetricFamily``, ``bentoml.metrics.metrics_core.SummaryMetricFamily`` instead.
docstr_tok: ["A","Metric","family","and","its","samples",".","This","is","a","base","class","to","be","used","by","instrumentation","client",".","Custom","collectors","should","use","``","bentoml.metrics.metrics_core.GaugeMetricFamily","``",",","``","bentoml.metrics.metrics_core.CounterMetricFamily","``",",","``","bentoml.metrics.metrics_core.SummaryMetricFamily","``","instead","."]
code: def Metric(self):
      """
      A Metric family and its samples.
  
      This is a base class to be used by instrumentation client. Custom collectors should use ``bentoml.metrics.metrics_core.GaugeMetricFamily``, ``bentoml.metrics.metrics_core.CounterMetricFamily``, ``bentoml.metrics.metrics_core.SummaryMetricFamily`` instead.
      """
      return partial(
          self.prometheus_client.Metric, registry=self.registry
      )
  
imports: from __future__ import annotations
  import logging
  import os
  import sys
  import typing
  from functools import partial
  from typing import TYPE_CHECKING
label_desc: Use image node_id 18 for calling the PrometheusClient obj's underlying member method code with example usage: obj.Metric() and returns: partial