Código fonte para asyncworker.metrics.collectors.base

import abc
from typing import Iterable

from prometheus_client import Metric


[documentos]class BaseCollector(metaclass=abc.ABCMeta):
[documentos] @abc.abstractmethod def collect(self) -> Iterable[Metric]: """A method that returns a list of Metric objects"""