TimelessMetrics.LibsqlEngine (timeless_metrics v6.4.2)

Copy Markdown View Source

SQLite/libSQL-backed metrics engine.

Compressed points live in the metric_samples virtual table and its shadow tables inside the store's existing metrics.db. A single writer connection preserves SQLite's write discipline while a small reader pool serves raw queries and discovery concurrently.

Summary

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

compact(store, cutoff \\ :all)

delete_before(store, cutoff)

find_series(store, metric, filter)

flush(store)

info(store)

ingest_prometheus(store, body, default_ts \\ nil)

label_values(store, metric, key)

latest(store, metric, labels)

latest_multi(store, metric, filter)

list_metrics(store)

list_series(store, metric)

open_connection(db_path)

open_connection(db_path, extension_path)

open_readonly_connection(db_path, extension_path)

query_aggregate(store, metric, labels, opts)

query_aggregate_multi(store, metric, label_filter, opts)

query_multi(store, metric, label_filter, opts)

query_raw(store, metric, labels, opts)

query_rollup(store, metric, labels, resolution, from, to)

reader_name(store, index)

resolve_series(store, metric, labels)

resolve_series_batch(store, pairs)

rollup(store)

start_link(opts)

write(store, metric, labels, value, timestamp)

write_batch(store, entries)

write_resolved(store, sid, value, timestamp)

writer_name(store)