- 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
17 lines
429 B
Python
Executable File
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']
|
|
)
|