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

Executes the destructor for this type. Read more

Registers a counter. Read more

Registers a gauge. Read more

Registers a histogram. Read more

Increments a counter.

Updates a gauge.

Records a histogram.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Convert self to an expression for Diesel’s query builder. Read more

Convert &self to an expression for Diesel’s query builder. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.