    def Metric(self):
        """
        A Metric family and its samples.

        This is a base class to be used by instrumentation client.
        Custom collectors should use
        ``prometheus_client.metrics_core.GaugeMetricFamily``,
        ``prometheus_client.metrics_core.CounterMetricFamily``,
        ``prometheus_client.metrics_core.SummaryMetricFamily`` instead.
        """
        return partial(self.prometheus_client.Metric, registry=self.registry)
A Metric family and its samples.

This is a base class to be used by instrumentation client.
Custom collectors should use
``prometheus_client.metrics_core.GaugeMetricFamily``,
``prometheus_client.metrics_core.CounterMetricFamily``,
``prometheus_client.metrics_core.SummaryMetricFamily`` instead.
src/bentoml/_internal/server/metrics/prometheus.py