Skip to content

Commit

Permalink
Adding additional metrics for pools to track disabled and drained nodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Studer committed Aug 4, 2016
1 parent b33b85f commit 75f685d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions VTMAgent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ private void PollPool()
ReportMetric("pools/" + pool.name + "/throughput/Received", "mebibits/second", processors["pool_" + pool.name + "_bytes_in"].Process(poolStats.bytes_in) / 131072);
ReportMetric("pools/" + pool.name + "/throughput/Transmitted", "mebibits/second", processors["pool_" + pool.name + "_bytes_out"].Process(poolStats.bytes_out) / 131072);
ReportMetric("pools/" + pool.name + "/nodes", "nodes", poolStats.nodes);
ReportMetric("pools/" + pool.name + "/disabled", "nodes", poolStats.disabled);
ReportMetric("pools/" + pool.name + "/draining", "nodes", poolStats.draining);
}
}
catch
Expand Down

0 comments on commit 75f685d

Please sign in to comment.