Files
aitbc/apps/coordinator-api/src/app/metrics.py
oib a4d4be4a1e feat: add marketplace metrics, privacy features, and service registry endpoints
- Add Prometheus metrics for marketplace API throughput and error rates with new dashboard panels
- Implement confidential transaction models with encryption support and access control
- Add key management system with registration, rotation, and audit logging
- Create services and registry routers for service discovery and management
- Integrate ZK proof generation for privacy-preserving receipts
- Add metrics instru
2025-12-22 10:33:23 +01:00

17 lines
429 B
Python

"""Prometheus metrics for the AITBC Coordinator API."""
from prometheus_client import Counter
# Marketplace API metrics
marketplace_requests_total = Counter(
'marketplace_requests_total',
'Total number of marketplace API requests',
['endpoint', 'method']
)
marketplace_errors_total = Counter(
'marketplace_errors_total',
'Total number of marketplace API errors',
['endpoint', 'method', 'error_type']
)