add datapoint counter #369

Closed
wants to merge 1 commit into
from

Projects

None yet

3 participants

@virtuallynathan
Contributor

trying again to add this as requested...

@manolama manolama commented on the diff Mar 2, 2015
src/core/TSDB.java
@@ -569,6 +572,8 @@ public WritableDataPoints newDataPoints() {
} else {
v = Bytes.fromLong(value);
}
+ collector.record("datapoints.received", datapoints_received, "type=all");
@manolama
manolama Mar 2, 2015 Member

Don't collect this every time, just when the collectStats() method is called.

@johann8384 johann8384 added a commit to johann8384/opentsdb that referenced this pull request Mar 15, 2016
@johann8384 johann8384 Only record stat when collectStats() is called.
Fixes #369
e8836d5
@johann8384 johann8384 added a commit to johann8384/opentsdb that referenced this pull request Mar 16, 2016
@johann8384 johann8384 Only record stat when collectStats() is called.
Fixes #369
640ab2e
@johann8384 johann8384 added this to the v2.3.0 milestone Mar 19, 2016
@johann8384 johann8384 closed this Mar 19, 2016
@johann8384 johann8384 added a commit to johann8384/opentsdb that referenced this pull request Dec 5, 2016
@johann8384 johann8384 Only record stat when collectStats() is called.
Fixes #369
2391e1a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment