Skip to content

Metrics Reference

FrogDB exports Prometheus metrics on the HTTP endpoint (default port 9090 at /metrics). Enable with metrics.enabled = true in configuration.

MetricTypeLabelsDescription
frogdb_uptime_secondsgaugeServer uptime in seconds
frogdb_infogaugeversion, modeServer information
frogdb_memory_rss_bytesgaugeResident set size in bytes
frogdb_cpu_user_seconds_totalcounterTotal user CPU time
frogdb_cpu_system_seconds_totalcounterTotal system CPU time
MetricTypeLabelsDescription
frogdb_connections_totalcounterTotal connections accepted
frogdb_connections_currentgaugeCurrent connected clients
frogdb_connections_maxgaugeMaximum configured connections
frogdb_connections_rejected_totalcounterreasonRejected connections
MetricTypeLabelsDescription
frogdb_commands_totalcountercommandTotal commands executed
frogdb_commands_duration_secondshistogramcommandCommand execution duration
frogdb_commands_errors_totalcountercommand, errorCommand errors
MetricTypeLabelsDescription
frogdb_keys_totalgaugeTotal number of keys
frogdb_keys_with_expirygaugeKeys with expiry set
frogdb_keys_expired_totalcounterTotal keys expired
frogdb_keyspace_hits_totalcounterKeyspace cache hits
frogdb_keyspace_misses_totalcounterKeyspace cache misses
MetricTypeLabelsDescription
frogdb_shard_keysgaugeshardKeys per shard
frogdb_shard_memory_bytesgaugeshardMemory per shard in bytes
frogdb_shard_queue_depthgaugeshardQueue depth per shard
frogdb_shard_queue_latency_secondshistogramshardQueue latency per shard
MetricTypeLabelsDescription
frogdb_wal_writes_totalcounterTotal WAL writes
frogdb_wal_bytes_totalcounterTotal WAL bytes written
frogdb_wal_flush_duration_secondshistogramWAL flush duration
frogdb_wal_pending_opsgaugePending WAL operations
frogdb_wal_pending_bytesgaugePending WAL bytes
frogdb_wal_durability_lag_msgaugeDurability lag in milliseconds
frogdb_wal_sync_lag_msgaugeSync lag in milliseconds
frogdb_wal_last_flush_timestampgaugeLast flush timestamp
frogdb_wal_last_sync_timestampgaugeLast sync timestamp
MetricTypeLabelsDescription
frogdb_snapshot_in_progressgaugeSnapshot currently in progress (0/1)
frogdb_snapshot_last_timestampgaugeLast successful snapshot timestamp
frogdb_snapshot_duration_secondshistogramSnapshot duration
frogdb_snapshot_size_bytesgaugeSnapshot size in bytes
frogdb_persistence_errors_totalcountererror_typePersistence errors
MetricTypeLabelsDescription
frogdb_pubsub_channelsgaugeActive channels
frogdb_pubsub_patternsgaugeActive patterns
frogdb_pubsub_subscribersgaugeTotal subscribers
frogdb_pubsub_messages_totalcounterMessages published
MetricTypeLabelsDescription
frogdb_net_input_bytes_totalcounterTotal input bytes
frogdb_net_output_bytes_totalcounterTotal output bytes
MetricTypeLabelsDescription
frogdb_memory_used_bytesgaugeUsed memory in bytes
frogdb_memory_maxmemory_bytesgaugeMax memory limit
frogdb_memory_peak_bytesgaugePeak memory usage
frogdb_memory_fragmentation_ratiogaugeFragmentation ratio
frogdb_eviction_keys_totalcounterKeys evicted
frogdb_eviction_bytes_totalcounterBytes evicted
frogdb_eviction_samples_totalcounterEviction samples
frogdb_eviction_oom_totalcounterOOM rejections
MetricTypeLabelsDescription
frogdb_blocked_clientsgaugeCurrently blocked clients
frogdb_blocked_keysgaugeKeys being watched for blocking
frogdb_blocked_timeout_totalcounterBlocking commands timed out
frogdb_blocked_satisfied_totalcounterBlocking commands satisfied
MetricTypeLabelsDescription
frogdb_lua_scripts_totalcounterScripts executed
frogdb_lua_scripts_duration_secondshistogramScript execution duration
frogdb_lua_scripts_errors_totalcounterScript errors
frogdb_lua_scripts_cache_hits_totalcounterScript cache hits
frogdb_lua_scripts_cache_misses_totalcounterScript cache misses
MetricTypeLabelsDescription
frogdb_transactions_totalcounteroutcomeTransactions by outcome
frogdb_transactions_duration_secondshistogramTransaction duration
frogdb_transactions_queued_commandshistogramQueued commands per transaction
MetricTypeLabelsDescription
frogdb_scatter_gather_totalcounterstatusScatter-gather operations
frogdb_scatter_gather_duration_secondshistogramOperation duration
frogdb_scatter_gather_shardshistogramShards involved
MetricTypeLabelsDescription
frogdb_split_brain_events_totalcounterSplit-brain events detected
frogdb_split_brain_ops_discarded_totalcounterOperations discarded during recovery
frogdb_split_brain_recovery_pendinggaugeUnprocessed split-brain log exists (0/1)
MetricTypeLabelsDescription
frogdb_latency_band_requests_totalcounterbandRequests by latency band
MetricTypeLabelsDescription
frogdb_binary_versiongaugeversionBinary version of this node
frogdb_active_versiongaugeversionCurrent finalized version
frogdb_cluster_mixed_versiongaugeMixed versions in cluster (0/1)
frogdb_version_gate_activegaugegateVersion gate active (0/1)