Chronix

Metrics

Every Prometheus metric chronixd exports on /metrics, with its type, labels and what it measures, plus cardinality and tracing settings.

On this page

chronixd exports Prometheus metrics on /metrics (configurable with metrics_path). This page lists every metric with its type and what it measures; scrape it with Prometheus and import the bundled dashboards to see them.

Prometheus Metrics

Chronix exposes Prometheus metrics at /metrics (default port 8086).

Cluster Health

MetricTypeDescription
chronix_cluster_nodes_totalGaugeTotal registered nodes
chronix_cluster_regions_totalGaugeTotal regions
chronix_cluster_under_replicated_regionsGaugeRegions below replication factor
chronix_cluster_leader_changes_totalCounterLeader election events

Performance

MetricTypeDescription
chronix_cluster_query_latency_secondsHistogramQuery latency
chronix_cluster_write_latency_secondsHistogramWrite latency
chronix_cluster_heartbeat_latency_secondsHistogramHeartbeat RTT
chronix_raft_log_replication_lagHistogramReplication lag

Object Store

MetricTypeDescription
chronix_objstore_put_duration_secondsHistogramObject put latency
chronix_objstore_get_duration_secondsHistogramObject get latency
chronix_objstore_cache_hits_totalCounterLocal cache hits
chronix_objstore_cache_misses_totalCounterLocal cache misses

Segment I/O

MetricTypeDescription
chronix_segment_prefetch_bytes_totalCounterBytes successfully prefetched via mmap madvise
chronix_segment_prefetch_errors_totalCounterPrefetch madvise failures

Streaming Aggregation

MetricTypeDescription
chronix_wire_non_finite_samples_skipped_totalCounterNaN/Infinity values dropped from streaming aggregation
chronix_prom_remote_write_samples_totalCounterFloat samples accepted over Prometheus remote write
chronix_prom_remote_write_histograms_totalCounterNative histograms accepted over Prometheus remote write
chronix_prom_remote_read_queries_totalCounterPrometheus remote read queries served

Self-maintenance

Flushing, compaction, rollup materialisation and retention all run on one thread per open database. Alert on chronix_maintenance_running == 0: a process that has lost it looks healthy until the memtable fills, after which only a restart recovers. /ready answers 503 naming the condition, and a full memtable with no thread to flush it is 503 OVERLOADED rather than retryable back-pressure.

MetricTypeDescription
chronix_maintenance_runningGauge1 while the maintenance thread is alive, 0 once it has ended. Refreshed every tick, so an absence lasting longer than that means the same as a zero
chronix_maintenance_panics_totalCounterPasses that panicked. The thread survives one — the other passes keep running — but a non-zero rate is a defect to report

Metrics / Observability

Chronix uses the metrics facade crate (v0.24) to emit runtime telemetry. The library emits metrics via counter!, gauge!, and histogram! macros — the embedding application is responsible for installing a recorder (e.g., metrics-exporter-prometheus).

MetricTypeEmitted FromDescription
chronix_write_errors_totalCounterevery write pathWrites that failed, labelled reason = storage_full | timeout | rejected | panic. storage_full is the data volume, and the one to alert on
chronix_sql_results_truncated_totalCounterthe HTTP, gRPC and Flight SQL query pathsResults the sql_max_rows ceiling cut short or refused. A non-zero rate means somebody is reading a prefix and calling it an answer
chronix_backfill_points_totalCounterevery write path with ?backfill=truePoints written outside the out-of-order window — importing history rather than ingesting live
chronix_backups_totalCounterbackup()Checkpoints taken. Published at zero, so an alert on a nightly backup that stopped running can fire from the first scrape
chronix_backup_failures_totalCounterbackup()Checkpoints that failed. The one to alert on — a backup that silently stops working is what the whole subsystem exists to prevent
chronix_backup_bytes_totalCounterbackup()Bytes the checkpoints placed. Hard-linked segments count their size, so this measures the database rather than the disk the backup consumed
chronix_backup_duration_secondsHistogrambackup()How long a checkpoint takes, flush included
chronix_compaction_backpressure_activeGaugeapply_backpressure()1.0 when write throttling is active, 0.0 otherwise
chronix_catalog_fsync_totalCounterthe catalog manifestManifest fsyncs. Beside chronix_wal_fsync_total: on flash the fsync rate is the wear rate. A compaction is one, whatever it retires, and so is a delete however many tombstones it produces
chronix_maintenance_runningGaugethe maintenance thread, refreshed each tick1 while it is alive, 0 once it has ended. Everything a database does for itself happens there, so a 0 — or an absence lasting longer than a tick — means the process will stop accepting writes and only a restart recovers. The one to alert on
chronix_maintenance_panics_totalCounterthe maintenance threadPasses that panicked. The thread survives one and the other passes keep running, so this is a defect report rather than an outage
chronix_memtable_memory_bytesGaugestatistics()Memtable rows and index entries
chronix_interner_memory_bytesGaugestatistics()String interners — grows with cardinality, not row count
chronix_wal_buffer_bytesGaugestatistics()WAL writer's buffer; fixed size
chronix_catalog_memory_bytesGaugestatistics()Segment catalog, schema registry and tombstones
chronix_retention_shards_dropped_totalCounterenforce_retention()Shards retention removed — not the ones it considered. A pass that declines an expired shard because a rollup still needs it counts zero here
chronix_series_released_totalCounterenforce_retention(), gc(), archive_cold_segments()Series returned to the cardinality budget because the last of their data was deleted
chronix_gc_segments_deleted_totalCountergc()Segment files unlinked by garbage collection — the ones a retirement pass had to leave because a running read still held them
chronix_segments_retired_awaiting_readers_totalCounterevery retirement passSegments taken out of the database whose files could not be unlinked yet, because a running scan had already been handed the path
chronix_leased_segmentsGaugestatistics()Segment files a running read is holding. Near zero at rest; a number that only grows is a scan nobody dropped
chronix_rollup_invalidations_totalCounterbackfill(), execute_delete()Rollups whose buckets were marked for recomputation by a late write or a delete
chronix_rollup_ranges_recomputed_totalCountermaterialise_rollups()Invalidated ranges recomputed
chronix_rollup_failures_totalCountermaterialise_rollups()Rollups whose materialisation failed this pass (the others still run)
chronix_detector_verdicts_totalCounteradvance_detectors()Verdict rows a declared detector wrote, labelled detector
chronix_detector_late_points_totalCounterevery writePoints that arrived at or below a declared detector's watermark and will not be judged, labelled detector. A steady rate means settle is shorter than the source's delivery delay
chronix_detector_failures_totalCounteradvance_detectors()Declared detectors whose pass failed (the others still run, and the failed one keeps its watermark)
chronix_cold_archive_groups_awaiting_rollup_totalCounterarchive_cold_segments()(measurement, shard) groups kept hot because a rollup has not caught up
chronix_cold_archive_groups_incomplete_totalCounterarchive_cold_segments()Groups kept hot because another segment or an unflushed row overlaps their range
chronix_cold_archive_objects_totalCounterarchive_cold_segments()Archive objects uploaded and verified
chronix_cold_archive_rows_totalCounterarchive_cold_segments()Rows written to the archive, after dedup and tombstones
chronix_rollup_points_written_totalCountermaterialise_rollups()Rollup points written by materialisation
chronix_retention_segments_awaiting_rollup_totalCounterenforce_retention()Expired segments preserved because a rollup they feed is not yet materialised past them
chronix_forecast_fit_duration_secondsHistogramchronix-analytics::forecastDuration of model fit operations
chronix_forecast_predict_duration_secondsHistogramchronix-analytics::forecastDuration of model predict operations
chronix_anomaly_fit_duration_secondsHistogramchronix-analytics::anomalyDuration of anomaly detector fit
chronix_anomaly_detect_duration_secondsHistogramchronix-analytics::anomalyDuration of anomaly detection
chronix_anomaly_detected_totalCounterchronix-analytics::anomalyTotal anomalies detected
chronix_preprocess_duration_secondsHistogramchronix-analytics::preprocessDuration of preprocessing pipeline
chronix_clock_drift_corrections_totalCounterchronix-analytics::preprocessClock drift corrections applied
chronix_compute_batch_operations_totalCounterchronix-analytics::computeBatch compute operations executed
chronix_compute_parallel_fit_duration_secondsHistogramchronix-analytics::computeDuration of parallel model fitting
chronix_segment_prefetch_bytes_totalCounterchronix-engine::segmentTotal bytes successfully prefetched via mmap madvise
chronix_segment_prefetch_errors_totalCounterchronix-engine::segmentPrefetch madvise failures
chronix_model_drift_detected_totalCounterchronix-analytics::lifecycleDrift detection events
chronix_model_drift_scoreGaugechronix-analytics::lifecycleCurrent drift score per model
chronix_model_accuracy_mapeGaugechronix-analytics::lifecycleModel accuracy (MAPE)
chronix_model_accuracy_rmseGaugechronix-analytics::lifecycleModel accuracy (RMSE)
chronix_model_age_secondsGaugechronix-analytics::lifecycleTime since last model fit
chronix_model_refit_totalCounterchronix-analytics::lifecycleModel re-fit events
chronix_model_ab_test_champion_mapeGaugechronix-analytics::lifecycleChampion model MAPE in A/B test
chronix_model_ab_test_challenger_mapeGaugechronix-analytics::lifecycleChallenger model MAPE in A/B test
chronix_correlation_compute_duration_secondsHistogramchronix-analytics::multivariateDuration of correlation computation
chronix_multivariate_anomaly_detect_duration_secondsHistogramchronix-analytics::multivariateDuration of MV anomaly detection
chronix_derived_series_eval_duration_secondsHistogramchronix-analytics::multivariateDuration of derived series evaluation
chronix_composite_signal_fired_totalCounterchronix-analytics::multivariateComposite signals fired
chronix_signal_delivery_queued_totalCounterDeliveryRouter::deliverSignals handed to a channel's worker — queued, not yet sent
chronix_signal_delivery_totalCounterdelivery workerSignals delivered, labelled channel
chronix_signal_delivery_failed_totalCounterdelivery workerFailed delivery attempts, labelled channel — a retried signal counts once per attempt
chronix_signal_delivery_duration_secondsHistogramdelivery workerQueue to successful delivery, including retries, labelled channel
chronix_signal_delivery_queue_depthGaugeDeliveryRouter::deliverSignals waiting on a channel's worker, labelled channel
chronix_signal_delivery_dropped_totalCounterDeliveryRouter::deliverSignals discarded on a full queue, labelled channel. Non-zero means alerts are being lost
chronix_signal_delivery_unrouted_totalCounterDeliveryRouter::deliverSignals naming an unregistered channel — fired, delivered nowhere
chronix_signal_evicted_totalCounterSignalStore::storeSignals evicted from a namespace's own ring to make room

Tracing instrumentation – All forecast fit()/predict() and anomaly fit()/detect() operations are annotated with #[tracing::instrument] spans at debug level, enabling timing analysis via any tracing-subscriber backend.

Edit this page on GitHub · Updated

Esc