Skip to content

Commit

Permalink
Add datapoint metrics to dashboard (#4343)
Browse files Browse the repository at this point in the history
automerge
  • Loading branch information
mvines authored and solana-grimes committed May 19, 2019
1 parent 6283cc9 commit a7e160e
Show file tree
Hide file tree
Showing 2 changed files with 727 additions and 349 deletions.
8 changes: 4 additions & 4 deletions metrics/src/metrics.rs
Expand Up @@ -233,12 +233,12 @@ impl MetricsAgent {
)
.add_field("num_points", influxdb::Value::Integer(num_points as i64))
.add_field(
"secs_since_last_write",
influxdb::Value::Integer(now.duration_since(last_write_time).as_secs() as i64),
"points_lost",
influxdb::Value::Integer((num_points - points_written) as i64),
)
.add_field(
"points_rate_exceeded",
influxdb::Value::Boolean(num_points > max_points),
"secs_since_last_write",
influxdb::Value::Integer(now.duration_since(last_write_time).as_secs() as i64),
)
.to_owned();

Expand Down

0 comments on commit a7e160e

Please sign in to comment.