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

Handle multiple metrics with the same timestamp in dedup plugin #7439

Merged
merged 1 commit into from
May 12, 2020

Conversation

reimda
Copy link
Contributor

@reimda reimda commented Apr 29, 2020

resolves #7343

now,
)
out = dedup.Apply(in)
require.Equal(t, []telegraf.Metric{in}, out) // pass
Copy link
Contributor

Choose a reason for hiding this comment

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

May want to use testutil.RequireMetricsEqual here for better error display. (I'm not sure if this is testing the pointer or the value)

out = dedup.Apply(in)
require.Equal(t, []telegraf.Metric{in}, out) // pass

in, _ = metric.New("metric",
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we split this into two tests?

@danielnelson danielnelson added this to the 1.14.3 milestone Apr 29, 2020
@danielnelson danielnelson added the fix pr to fix corresponding bug label Apr 29, 2020
@danielnelson danielnelson merged commit 934f6af into master May 12, 2020
@danielnelson danielnelson deleted the dedup-same-time branch May 12, 2020 19:56
danielnelson pushed a commit that referenced this pull request May 12, 2020
rhajek pushed a commit to bonitoo-io/telegraf that referenced this pull request Jul 13, 2020
idohalevi pushed a commit to idohalevi/telegraf that referenced this pull request Sep 29, 2020
arstercz pushed a commit to arstercz/telegraf that referenced this pull request Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix pr to fix corresponding bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

uptime (and uptime_format) from system-plugin always suppressed when dedup active
2 participants