Skip to content
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

Drop summary and timer lines with a count of 0 in the Dynatrace exporter #2970

Conversation

pirgeo
Copy link
Contributor

@pirgeo pirgeo commented Jan 11, 2022

With this change, Dynatrace metrics lines (summaries and timers) with a count of 0 are dropped on the exporter side.

@@ -174,6 +174,10 @@ private String createCounterLine(Meter meter, Measurement measurement) {

private Stream<String> toSummaryLine(Meter meter, HistogramSnapshot histogramSnapshot, TimeUnit timeUnit) {
long count = histogramSnapshot.count();
if (count < 1) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a difference on the backend between sending a zero measurement and not sending a measurement at all?
E.g.: If the service is down (or the meter got removed from Micrometer) vs. it is up but it is not receiving any traffic.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I am aware, there currently is no difference for summary metrics.

@jonatan-ivanov
Copy link
Member

I'm not able to rebase this against 1.8.x so I opened a new PR with the rebased commit: #3030

@arminru arminru deleted the dont-send-0-counts branch February 16, 2022 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants