Files
aitbc/apps/coordinator-api/src/app/metrics.py
oib 15427c96c0 chore: update file permissions to executable across repository
- Change file mode from 644 to 755 for all project files
- Add chain_id parameter to get_balance RPC endpoint with default "ait-devnet"
- Rename Miner.extra_meta_data to extra_metadata for consistency
2026-03-06 22:17:54 +01:00

17 lines
429 B
Python
Executable File

"""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']
)