face-intel / metrics /__init__.py
Marwan
Restructure + add reverse face search (PimEyes-style)
f5eeb1c
Raw
History Blame Contribute Delete
693 Bytes
"""
Metrics subsystem — tracks provider latency, success/failure counts,
retries, cache hit ratio, and execution duration.
All metrics are in-process and thread-safe. Designed to be scraped
by the /stats endpoint. No external metrics backend (Prometheus etc.)
is required, but the data model is compatible with one.
"""
from metrics.provider_metrics import ProviderMetrics
from metrics.timings import TimingCollector
from metrics.counters import CounterRegistry
from metrics.health_metrics import HealthMetrics
from metrics.collector import MetricsCollector
__all__ = [
"ProviderMetrics",
"TimingCollector",
"CounterRegistry",
"HealthMetrics",
"MetricsCollector",
]