Re-exports§
pub use golden_signals::ERRORS_BY_TYPE;pub use golden_signals::ERRORS_TOTAL;pub use golden_signals::ErrorType;pub use golden_signals::GoldenSignalsSnapshot;pub use golden_signals::LATENCY_FETCH;pub use golden_signals::LATENCY_INGEST;pub use golden_signals::LATENCY_IO;pub use golden_signals::LATENCY_NETWORK;pub use golden_signals::LATENCY_REPLICATION;pub use golden_signals::LATENCY_SAMPLE_RATE;pub use golden_signals::LatencyHistogram;pub use golden_signals::LatencySnapshot;pub use golden_signals::LatencyTimer;pub use golden_signals::RATE_INGEST_BYTES;pub use golden_signals::RATE_INGEST_OPS;pub use golden_signals::RATE_READ_BYTES;pub use golden_signals::RATE_READ_OPS;pub use golden_signals::RateTracker;pub use golden_signals::SATURATION_BUFFER_POOL_TOTAL;pub use golden_signals::SATURATION_BUFFER_POOL_USED;pub use golden_signals::SATURATION_CONNECTIONS_MAX;pub use golden_signals::SATURATION_CONNECTIONS_USED;pub use golden_signals::SATURATION_MEMORY_TOTAL;pub use golden_signals::SATURATION_MEMORY_USED;pub use golden_signals::SATURATION_PENDING_IO;pub use golden_signals::SATURATION_QUEUE_CAPACITY;pub use golden_signals::SATURATION_QUEUE_DEPTH;pub use golden_signals::SampledTimer;pub use golden_signals::buffer_pool_saturation;pub use golden_signals::get_error_count;pub use golden_signals::get_total_errors;pub use golden_signals::memory_saturation;pub use golden_signals::queue_saturation;pub use golden_signals::record_error;pub use golden_signals::record_fetch_latency;pub use golden_signals::record_fetch_latency_sampled;pub use golden_signals::record_ingest_latency;pub use golden_signals::record_ingest_latency_sampled;pub use golden_signals::record_io_latency;pub use golden_signals::record_io_latency_sampled;pub use golden_signals::record_network_latency;pub use golden_signals::record_peer_replication_latency;pub use golden_signals::record_replication_latency;pub use golden_signals::saturation_ratio;pub use golden_signals::set_buffer_pool_usage;pub use golden_signals::set_connection_usage;pub use golden_signals::set_latency_sample_rate;pub use golden_signals::set_memory_usage;pub use golden_signals::set_pending_io;pub use golden_signals::set_queue_depth;pub use golden_signals::should_sample;pub use golden_signals::time_fetch;pub use golden_signals::time_fetch_sampled;pub use golden_signals::time_ingest;pub use golden_signals::time_ingest_sampled;pub use golden_signals::time_io;pub use golden_signals::time_io_sampled;pub use golden_signals::update_rates;
Modules§
- golden_
signals - 4 Golden Signals Metrics
- otlp
- OTLP (OpenTelemetry Protocol) export implementation.
Structs§
- Local
Span - Simple span for local tracing
- Metrics
Snapshot - Span
Context - Span context for distributed tracing
- Tracing
Config - Tracing configuration
Enums§
- Operation
Type - Operation types for tracing
Statics§
- BACKPRESSURE_
EVENTS - BATCHES_
WRITTEN - BYTES_
INGESTED - BYTES_
WRITTEN - CLUSTER_
APPLY_ LAG_ AT_ ELECTION - CLUSTER_
APPLY_ LAG_ ENTRIES - CLUSTER_
COORDINATOR_ READY - CLUSTER_
COORDINATOR_ TICK_ DRIFT_ MS - CLUSTER_
CURRENT_ TERM - CLUSTER_
ELECTED_ NOT_ READY_ REJECTS - CLUSTER_
HEALTHY_ NODES - CLUSTER_
IS_ LEADER - CLUSTER_
LEADER_ ID - CLUSTER_
LEADER_ READY - CLUSTER_
LEADER_ READY_ TRANSITION_ MS - CLUSTER_
NODE_ COUNT - CLUSTER_
QUORUM_ AVAILABLE - CONNECTIONS_
ACTIVE - CONNECTIONS_
TOTAL - CONSUMER_
THROTTLED - CONTROL_
RPC_ IN_ FLIGHT - CONTROL_
RPC_ STARVATION - CRC_
FAILURES - FOLLOWER_
EVICTIONS - FOLLOWER_
RECOVERIES - HLC_
DRIFT_ CRITICAL - HLC_
DRIFT_ MS - HLC_
DRIFT_ WARNINGS - HLC_
LOGICAL_ EXHAUSTED - IO_
OPS_ COMPLETED - IO_
OPS_ SUBMITTED - NUMA_
MISALIGNED - POOL_
EXHAUSTED - QUORUM_
FAILURES - QUORUM_
TIMEOUTS - RAFT_
ELECTIONS_ STARTED - RAFT_
ELECTIONS_ WON - RAFT_
ELECTION_ ROUND_ LAST_ MS - RAFT_
ELECTION_ STORMS - RAFT_
ELECTION_ WINDOW_ COUNT - RAFT_
FENCING_ REJECTIONS - RAFT_
LEADER_ STEPDOWNS - RAFT_
LEADER_ TENURE_ AVG_ MS - RAFT_
LEADER_ TENURE_ ENDED - RAFT_
LEADER_ TENURE_ LAST_ MS - RAFT_
LEADER_ TENURE_ SUM_ MS - RAFT_
PRE_ VOTES_ REJECTED - READS_
TOTAL - READ_
BYTES_ TOTAL - RECORDS_
INGESTED - REPLICATION_
LAG_ BYTES - REPLICATION_
LAST_ SYNC_ MS - REPLICATION_
PENDING_ OPS - RESYNC_
BYTES_ TRANSFERRED - RESYNC_
COMPLETED - RESYNC_
FAILED - RESYNC_
SEGMENTS_ TRANSFERRED - RESYNC_
STARTED - ZERO_
COPY_ SENDS
Functions§
- cluster_
coordinator_ ready - Read current coordinator readiness as bool.
- decrement_
connections - decrement_
control_ rpc_ in_ flight - Decrement in-flight control RPCs.
- decrement_
replication_ pending_ ops - Decrement pending replication operations.
- export_
to_ prometheus - increment_
backpressure - increment_
batches_ written - increment_
bytes_ ingested - increment_
bytes_ written - increment_
cluster_ elected_ not_ ready_ rejects - Increment counter for requests rejected while leader was elected but not ready.
- increment_
connections - increment_
consumer_ throttled - Increment consumer throttled events counter.
- increment_
control_ rpc_ in_ flight - Increment in-flight control RPCs.
- increment_
control_ rpc_ starvation - Increment control RPC starvation/contention counter.
- increment_
crc_ failures - increment_
follower_ evictions - increment_
follower_ recoveries - increment_
hlc_ drift_ critical - Increment HLC drift critical counter (drift > 1s).
- increment_
hlc_ drift_ warnings - Increment HLC drift warning counter (drift > 100ms).
- increment_
hlc_ logical_ exhausted - Increment HLC logical counter exhausted events.
- increment_
io_ completed - increment_
io_ submitted - increment_
numa_ misaligned - increment_
pool_ exhausted - increment_
quorum_ failures - increment_
quorum_ timeouts - increment_
raft_ election_ storms - Increment election storm detector counter.
- increment_
raft_ elections_ started - Increment Raft elections started counter.
- increment_
raft_ elections_ won - Increment Raft elections won counter.
- increment_
raft_ fencing_ rejections - Increment Raft fencing rejection counter.
- increment_
raft_ leader_ stepdowns - Increment Raft leader stepdown counter.
- increment_
raft_ pre_ votes_ rejected - Increment Raft pre-votes rejected counter.
- increment_
read_ bytes - Increment total bytes read counter.
- increment_
reads - Increment total read operations counter.
- increment_
records_ ingested - increment_
replication_ pending_ ops - Increment pending replication operations.
- increment_
resync_ bytes_ transferred - Increment bytes transferred during resync.
- increment_
resync_ completed - Increment resync sessions completed successfully.
- increment_
resync_ failed - Increment resync sessions that failed.
- increment_
resync_ segments_ transferred - Increment segments transferred during resync.
- increment_
resync_ started - Increment resync sessions started counter.
- increment_
zero_ copy_ sends - Increment zero-copy sends counter (per Architecture §17.7)
- init_
prometheus_ exporter - init_
tracing - Initialize tracing (placeholder - actual implementation would use tracing-subscriber)
- record_
raft_ election_ round_ ms - Record election round wall-clock duration and publish histogram sample.
- record_
raft_ leader_ tenure_ ms - Record leader tenure end and update rolling gauges.
- record_
raft_ pre_ vote_ rpc_ latency_ ms - Record a pre-vote RPC round-trip latency sample.
- record_
raft_ vote_ rpc_ latency_ ms - Record a vote RPC round-trip latency sample.
- set_
cluster_ apply_ lag_ at_ election - Set apply lag captured at/after election while readiness is pending.
- set_
cluster_ apply_ lag_ entries - Set current commit/apply lag (entries).
- set_
cluster_ coordinator_ ready - Set whether coordinator control-plane is healthy/readiness-eligible.
- set_
cluster_ coordinator_ tick_ drift_ ms - Set coordinator loop tick drift in milliseconds.
- set_
cluster_ current_ term - Set the current Raft term.
- set_
cluster_ healthy_ nodes - Set the number of healthy (connected) nodes.
- set_
cluster_ is_ leader - Set whether this node is the leader (1 = leader, 0 = follower).
- set_
cluster_ leader_ id - Set the current cluster leader ID.
- set_
cluster_ leader_ ready - Set whether this node is leader-ready (1 = yes, 0 = no).
- set_
cluster_ leader_ ready_ transition_ ms - Set elapsed milliseconds from election win to ready-authoritative transition.
- set_
cluster_ node_ count - Set the total number of nodes in the cluster.
- set_
cluster_ quorum_ available - Set whether quorum is available (1 = yes, 0 = no).
- set_
hlc_ drift_ ms - Update the current HLC drift in milliseconds.
- set_
raft_ election_ window_ count - Set count of elections observed in current storm window.
- set_
replication_ lag_ bytes - Set the replication lag in bytes (how far behind the leader).
- set_
replication_ last_ sync_ ms - Set the time since last successful sync in milliseconds.
- set_
replication_ pending_ ops - Set the number of pending replication operations.