Skip to content

Library for sending Influx and Graphite metrics over UDP

Notifications You must be signed in to change notification settings

doyshinda/fluxite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fluxite

This library is used to emit metrics in either InfluxDB linefeed OR Graphite plaintext format and exporting them over UDP.

Example

The reporter should be initialized once at application startup:

let config = MetricsConfig {
    endpoint: "localhost:8089",
    sink_type: SinkType::Influx,
    prefix: None,
    interval: None,
};

init_reporter(&config).unwrap();

Reporting metrics works through the use of the various macros:

use fluxite::count;

count!("my_api", 1, "user" => "foo");

Will emit an InfluxDB metric like this:

my_api,user=foo count=1 <timestamp>

About

Library for sending Influx and Graphite metrics over UDP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages