Map counters to metrics

This commit is contained in:
Michael Vines
2018-07-07 20:08:14 -07:00
committed by Greg Fitzgerald
parent 3b1aa846b5
commit 0ee86ff313
2 changed files with 12 additions and 0 deletions

View File

@@ -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),