Metrics#
Type#
-
enum class roq::metrics::Type#
Enumeration of metrics keys.
Values:
-
enumerator COUNTER#
Gateway specific.
-
enumerator INTER_PROCESS_LATENCY#
IPC latency between components (one-way)
-
enumerator PROFILE#
Function profiling.
-
enumerator CLIENTS#
Connection events.
-
enumerator EXCEPTIONS#
Rejected order requests (counter)
-
enumerator HEARTBEAT_LATENCY#
Heartbeat latency between components.
-
enumerator PROCESS#
Process information.
-
enumerator ROUND_TRIP_LATENCY#
Tick-to-trade latency (round-trip, internal)
-
enumerator UPDATED#
State changes for connections (counter)
-
enumerator EVENT_LOG#
Event-log activity (counter)
-
enumerator MARKET_DATA_LATENCY#
Market data latency (one-way)
-
enumerator REQUEST_LATENCY#
Request latency (round-trip)
-
enumerator JOURNAL_LATENCY#
Journal latency (round-trip)
-
enumerator END_TO_END_LATENCY#
Latency between entry (origin) and exit (used by fix-bridge)
-
enumerator RATE_LIMITER#
Rate limiter (gauge)
-
enumerator COUNTER#
Writer#
-
struct Writer#
Writer (Prometheus’ exposition format)
Public Functions
-
virtual Writer &write_type(std::string_view const &name, std::string_view const &type) = 0#
Write the TYPE header.
-
virtual Writer &write_simple(std::string_view const &name, std::string_view const &labels, uint64_t value) = 0#
Write simple metrics (counter and gauge)
-
virtual Writer &write_bucket(std::string_view const &name, std::string_view const &labels, double quantile, uint64_t value) = 0#
Write histogram buckets.
-
virtual Writer &write_sum(std::string_view const &name, std::string_view const &labels, double value) = 0#
Write histogram sum.
-
virtual Writer &write_type(std::string_view const &name, std::string_view const &type) = 0#