Struct dipstick::statsd::StatsdSink
[−]
[src]
pub struct StatsdSink { /* fields omitted */ }
Allows sending metrics to a statsd server
Methods
impl StatsdSink
[src]
fn new<S: AsRef<str>, A: ToSocketAddrs>(
address: A,
prefix_str: S
) -> Result<StatsdSink>
[src]
address: A,
prefix_str: S
) -> Result<StatsdSink>
Create a new statsd sink to the specified address with the specified prefix
Trait Implementations
impl Debug for StatsdSink
[src]
impl MetricSink for StatsdSink
[src]
type Metric = StatsdKey
Metric identifier type of this sink.
type Writer = StatsdWriter
Metric writer type of this sink.
fn new_metric<S: AsRef<str>>(
&self,
kind: MetricKind,
name: S,
sampling: Rate
) -> Self::Metric
[src]
&self,
kind: MetricKind,
name: S,
sampling: Rate
) -> Self::Metric
Define a new sink-specific metric that can be used for writing values.
fn new_writer(&self) -> Self::Writer
[src]
Open a metric writer to write metrics to. Some sinks reuse the same writer while others allocate resources for every new writer. Read more