-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix issue with historgram statistic set being converted by duration #6
Fix issue with historgram statistic set being converted by duration #6
Conversation
@@ -242,7 +242,7 @@ private void processHistogram(final String metricName, final Histogram histogram | |||
stageMetricDatum(true, metricName, value, StandardUnit.None, percentile.getDesc(), metricData); | |||
} | |||
|
|||
stageMetricDatum(builder.withStatisticSet, metricName, snapshot, StandardUnit.None, "snapshot-summary", metricData); | |||
stageHistorgramMtricStatisticSet(builder.withStatisticSet, metricName, snapshot, StandardUnit.None, "snapshot-summary", metricData); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo in: stageHistorgramMtricStatisticSet
.filter(metricDatum -> metricDatum.getDimensions() | ||
.contains(new Dimension().withName("Type").withValue(dimensionValue))) | ||
.filter(metricDatum -> { | ||
System.out.println(metricDatum.getDimensions()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot the System.out.println
due to debugging?
Thank you! Left some comments |
…ogram to show subsequent reports are correct
Addressed the comments and added another test for a sliding window histogram to sanity check that subsequent report methods correctly update the min/max etc |
slidingWindowHistogram.update(100); | ||
slidingWindowHistogram.update(5); | ||
slidingWindowHistogram.update(6); | ||
reporterBuilder.withStatisticSet().build().report(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am curious: did you intentionally re-build the CloudWatchReporter
before reporting the 2nd time? Why not just reporter.report();
without rebuilding - I guess it can be another test case?
Thank you for your input with this!
…On Tue, Aug 15, 2017 at 3:07 AM, williedoran ***@***.***> wrote:
Addressed the comments and added another test for a sliding window
histogram to sanity check that subsequent report methods correctly update
the min/max etc
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA8azKjDPo0S3JAIfKrIOI2dH3GK-eU5ks5sYW3ggaJpZM4O2taK>
.
|
- Issue #4: Not reporting zero values. - PR #6: Histogram snapshot values being converted using a duration factor, instead of reporting raw values (https://github.com/williedoran) - Checking 'isDebugEnabled' when logging debug information
- Issue #4: Not reporting zero values. - PR #6: Histogram snapshot values being converted using a duration factor, instead of reporting raw values (https://github.com/williedoran) - Checking 'isDebugEnabled' when logging debug information
- Issue #4: Not reporting zero values. - PR #6: Histogram snapshot values being converted using a duration factor, instead of reporting raw values (https://github.com/williedoran) - Checking 'isDebugEnabled' when logging debug information
- Issue #4: Not reporting zero values. - PR #6: Histogram snapshot values being converted using a duration factor, instead of reporting raw values (https://github.com/williedoran) - Checking 'isDebugEnabled' when logging debug information
- Issue #4: Not reporting zero values. - PR #6: Histogram snapshot values being converted using a duration factor, instead of reporting raw values (https://github.com/williedoran) - Checking 'isDebugEnabled' when logging debug information
removed covert by duration and added test for historgram min,max and sum reporting in statistic set