dash for namespaces (#649)

This commit is contained in:
anatoly yakovenko 2018-07-16 15:55:54 -07:00 committed by GitHub
parent ab3e460e64
commit 015b7a1ddb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ impl Counter {
} }
if times % INFLUX_RATE == 0 && times > 0 { if times % INFLUX_RATE == 0 && times > 0 {
metrics::submit( metrics::submit(
influxdb::Point::new(&format!("counter_{}", self.name)) influxdb::Point::new(&format!("counter-{}", self.name))
.add_field( .add_field(
"count", "count",
influxdb::Value::Integer(counts as i64 - lastlog as i64), influxdb::Value::Integer(counts as i64 - lastlog as i64),