MetricsManager
faststream.prometheus.manager.MetricsManager #
MetricsManager(
container: MetricsContainer,
*,
app_name: str = "faststream",
)
Source code in faststream/prometheus/manager.py
add_received_message #
Source code in faststream/prometheus/manager.py
observe_received_messages_size #
observe_received_messages_size(
broker: str,
handler: str,
size: int,
**custom_labels: str,
) -> None
Source code in faststream/prometheus/manager.py
add_received_message_in_process #
add_received_message_in_process(
broker: str,
handler: str,
amount: int = 1,
**custom_labels: str,
) -> None
Source code in faststream/prometheus/manager.py
remove_received_message_in_process #
remove_received_message_in_process(
broker: str,
handler: str,
amount: int = 1,
**custom_labels: str,
) -> None
Source code in faststream/prometheus/manager.py
add_received_processed_message #
add_received_processed_message(
broker: str,
handler: str,
status: ProcessingStatus,
amount: int = 1,
**custom_labels: str,
) -> None
Source code in faststream/prometheus/manager.py
observe_received_processed_message_duration #
observe_received_processed_message_duration(
duration: float,
broker: str,
handler: str,
**custom_labels: str,
) -> None
Source code in faststream/prometheus/manager.py
add_received_processed_message_exception #
add_received_processed_message_exception(
broker: str,
handler: str,
exception_type: str,
**custom_labels: str,
) -> None
Source code in faststream/prometheus/manager.py
add_published_message #
add_published_message(
broker: str,
destination: str,
status: PublishingStatus,
amount: int = 1,
**custom_labels: str,
) -> None
Source code in faststream/prometheus/manager.py
observe_published_message_duration #
observe_published_message_duration(
duration: float,
broker: str,
destination: str,
**custom_labels: str,
) -> None
Source code in faststream/prometheus/manager.py
add_published_message_exception #
add_published_message_exception(
broker: str,
destination: str,
exception_type: str,
**custom_labels: str,
) -> None