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

[Metricbeat] Further revise check for bad data in docker/memory #17400

Merged

Conversation

fearful-symmetry
Copy link
Contributor

@fearful-symmetry fearful-symmetry commented Apr 1, 2020

What does this PR do?

Apparently, as I discovered in discuss, there are platforms where there's no cgroup memory data, and thus no memory stats for docker to send us. In this case, we were still sending NaNs to the output because of the && check.

Why is it important?

We don't want to send data with NaNs to the output.

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

How to test this PR locally

There's an added test. People have been reporting this bug against CentOS, but I haven't been able to reproduce it myself, as it appears to be a cgroup quirk.

@fearful-symmetry fearful-symmetry added bug Metricbeat Metricbeat Team:Integrations Label for the Integrations team labels Apr 1, 2020
@fearful-symmetry fearful-symmetry requested a review from a team April 1, 2020 14:48
@fearful-symmetry fearful-symmetry self-assigned this Apr 1, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations (Team:Integrations)

Copy link
Contributor

@narph narph left a comment

Choose a reason for hiding this comment

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

LGTM, maybe needs an update in the changelog file?

@fearful-symmetry fearful-symmetry added the needs_backport PR is waiting to be backported to other branches. label Apr 1, 2020
@fearful-symmetry fearful-symmetry requested review from narph and a team April 1, 2020 20:21
@fearful-symmetry fearful-symmetry merged commit b80066c into elastic:master Apr 2, 2020
@fearful-symmetry fearful-symmetry added v7.8.0 and removed needs_backport PR is waiting to be backported to other branches. labels Apr 2, 2020
fearful-symmetry added a commit to fearful-symmetry/beats that referenced this pull request Apr 2, 2020
…tic#17400)

* use OR to check for missing data and report lack of memory data

* add changelog entry

* remove space

(cherry picked from commit b80066c)
fearful-symmetry added a commit that referenced this pull request Apr 2, 2020
…data in docker/memory (#17446)

* [Metricbeat] Further revise check for bad data in docker/memory (#17400)

* use OR to check for missing data and report lack of memory data

* add changelog entry

* remove space

(cherry picked from commit b80066c)

* fix changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Metricbeat Metricbeat Team:Integrations Label for the Integrations team v7.8.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants