Crates.io | metriki-macros |
lib.rs | metriki-macros |
version | 1.0.0 |
source | src |
created_at | 2021-06-02 14:24:10.799644 |
updated_at | 2021-06-02 14:24:10.799644 |
description | Macros for metriki |
homepage | https://github.com/sunng87/metriki |
repository | https://github.com/sunng87/metriki |
max_upload_size | |
id | 405314 |
size | 6,638 |
Metriki is a rust library ported from Dropwizard Metrics.
Like Dropwizard Metrics, Metriki aggregates metrics on client-side and outputs limited amount data.
#[timed]
fn your_function() {
// a function metered by a timer for its rate and latency
}
use metriki_core::global::global_registry;
An entrypoint and holder of all metrics.
A trait to be implemented so that dynamic metrics can be added into registry. Metrics from the set are pulled into registry everytime when reporters and exporters pulling values from the registry.
A component to report metric data periodically. Typically used for data sinks which has a push-model.
A component to expose metric data to external queriers. Typically for pull based data sinks.
MIT/Apache-2.0