Struct metrics_sqlite::SqliteExporter
source · [−]pub struct SqliteExporter { /* private fields */ }
Expand description
Exports metrics by storing them in a SQLite database at a periodic interval
Implementations
Creates a new SqliteExporter
that stores metrics in a SQLite database file.
flush_interval
specifies how often metrics are flushed to SQLite/disk
keep_duration
specifies how long data is kept before deleting, performed new()
Sets optional periodic house keeping, None to disable (disabled by default)
Notes
Periodic house keeping can affect metric recording, causing some data to be dropped during house keeping. Record limit if set will cause anything over limit + 25% of limit to be removed
Install recorder as metrics
crate’s Recorder
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for SqliteExporter
impl Send for SqliteExporter
impl Sync for SqliteExporter
impl Unpin for SqliteExporter
impl !UnwindSafe for SqliteExporter
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert self
to an expression for Diesel’s query builder. Read more
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
Convert &self
to an expression for Diesel’s query builder. Read more