Skip to main content

Module metrics_collector

Module metrics_collector 

Source
Expand description

Metrics Collector - Periodic collection of business and operational metrics.

This module provides a background task that periodically computes and exports metrics for trading activity, risk, market quality, and operations.

Modulesยง

directive_outbox ๐Ÿ”’
events ๐Ÿ”’
integrity ๐Ÿ”’
market_quality ๐Ÿ”’
operations ๐Ÿ”’
risk ๐Ÿ”’
settlement ๐Ÿ”’
trading ๐Ÿ”’

Structsยง

MetricsCollector
Metrics collector that periodically computes and exports business metrics.
MetricsCollectorConfig
Configuration for the metrics collector.

Enumsยง

AuthFailureReason
Bounded set of authentication failure reasons used for low-cardinality API authentication metrics.
LiquidationReason
Bounded set of liquidation reasons to prevent metric cardinality explosion.

Constantsยง

CARGO_VERSION
COMPILE_TIME_BUILD_TIME ๐Ÿ”’
COMPILE_TIME_GIT_COMMIT ๐Ÿ”’
COMPILE_TIME_GIT_REF ๐Ÿ”’

Staticsยง

BUILD_TIME
GIT_COMMIT
GIT_REF

Functionsยง

record_auth_failure
Record an authentication failure.
record_liquidation
Record a liquidation event.
record_settlement
Record a settlement event.