Add datapoint metrics to dashboard (#4343)

automerge
This commit is contained in:
Michael Vines
2019-05-19 15:07:03 -07:00
committed by Grimes
parent 6283cc916d
commit a7e160e5c4
2 changed files with 906 additions and 528 deletions

View File

@ -233,12 +233,12 @@ impl MetricsAgent {
) )
.add_field("num_points", influxdb::Value::Integer(num_points as i64)) .add_field("num_points", influxdb::Value::Integer(num_points as i64))
.add_field( .add_field(
"secs_since_last_write", "points_lost",
influxdb::Value::Integer(now.duration_since(last_write_time).as_secs() as i64), influxdb::Value::Integer((num_points - points_written) as i64),
) )
.add_field( .add_field(
"points_rate_exceeded", "secs_since_last_write",
influxdb::Value::Boolean(num_points > max_points), influxdb::Value::Integer(now.duration_since(last_write_time).as_secs() as i64),
) )
.to_owned(); .to_owned();

File diff suppressed because it is too large Load Diff