Map counters to metrics
This commit is contained in:
committed by
Greg Fitzgerald
parent
3b1aa846b5
commit
0ee86ff313
@@ -56,6 +56,7 @@ impl InfluxDbMetricsWriter {
|
||||
impl MetricsWriter for InfluxDbMetricsWriter {
|
||||
fn write(&self, points: Vec<influxdb::Point>) {
|
||||
if let Some(ref client) = self.client {
|
||||
info!("submitting {} points", points.len());
|
||||
if let Err(err) = client.write_points(
|
||||
influxdb::Points { point: points },
|
||||
Some(influxdb::Precision::Milliseconds),
|
||||
|
Reference in New Issue
Block a user