-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
libbeat/monitoring/inputmon - Ignore dataset metrics without name and id #34884
Merged
andrewkroh
merged 5 commits into
elastic:main
from
andrewkroh:bugfix/libbeat/filter-legacy-inputs-api
Mar 22, 2023
Merged
libbeat/monitoring/inputmon - Ignore dataset metrics without name and id #34884
andrewkroh
merged 5 commits into
elastic:main
from
andrewkroh:bugfix/libbeat/filter-legacy-inputs-api
Mar 22, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This filters metrics from the /inputs/ endpoint for entities that lack an input `name` and `id`. This is needed because we continued to use the "dataset" namespace in the monitoring registry instead of using a new one like "inputs". Originally I planned to use to new namespace but I stayed with `dataset` because I wanted to prevent a breaking change for existing users of the /dataset API endpoint. This meant that metrics from the log input (and possibly others) that don't yet follow the conventions need to be filtered.
andrewkroh
added
bug
Team:Security-External Integrations
backport-v8.7.0
Automated backport with mergify
labels
Mar 21, 2023
andrewkroh
requested review from
ycombinator and
fearful-symmetry
and removed request for
a team
March 21, 2023 21:31
botelastic
bot
added
the
needs_team
Indicates that the issue/PR needs a Team:* label
label
Mar 21, 2023
Pinging @elastic/security-external-integrations (Team:Security-External Integrations) |
botelastic
bot
removed
the
needs_team
Indicates that the issue/PR needs a Team:* label
label
Mar 21, 2023
efd6
approved these changes
Mar 21, 2023
Co-authored-by: Dan Kortschak <[email protected]>
Collaborator
Co-authored-by: Dan Kortschak <[email protected]>
mergify bot
pushed a commit
that referenced
this pull request
Mar 22, 2023
… id (#34884) This filters metrics from the /inputs/ endpoint for entities that lack an input `name` and `id`. This is needed because we continued to use the "dataset" namespace in the monitoring registry instead of using a new one like "inputs". Originally I planned to use to new namespace but I stayed with `dataset` because I wanted to prevent a breaking change for existing users of the /dataset API endpoint. This meant that metrics from the log input (and possibly others) that don't yet follow the conventions need to be filtered. Co-authored-by: Dan Kortschak <[email protected]> (cherry picked from commit a0c6bb6)
andrewkroh
added a commit
that referenced
this pull request
Mar 22, 2023
… id (#34884) (#34898) This filters metrics from the /inputs/ endpoint for entities that lack an input `name` and `id`. This is needed because we continued to use the "dataset" namespace in the monitoring registry instead of using a new one like "inputs". Originally I planned to use to new namespace but I stayed with `dataset` because I wanted to prevent a breaking change for existing users of the /dataset API endpoint. This meant that metrics from the log input (and possibly others) that don't yet follow the conventions need to be filtered. Co-authored-by: Dan Kortschak <[email protected]> (cherry picked from commit a0c6bb6) Co-authored-by: Andrew Kroh <[email protected]>
chrisberkhout
pushed a commit
that referenced
this pull request
Jun 1, 2023
… id (#34884) This filters metrics from the /inputs/ endpoint for entities that lack an input `name` and `id`. This is needed because we continued to use the "dataset" namespace in the monitoring registry instead of using a new one like "inputs". Originally I planned to use to new namespace but I stayed with `dataset` because I wanted to prevent a breaking change for existing users of the /dataset API endpoint. This meant that metrics from the log input (and possibly others) that don't yet follow the conventions need to be filtered. Co-authored-by: Dan Kortschak <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
This filters metrics from the /inputs/ endpoint for entities that lack an input
name
andid
.This is needed because we continued to use the "dataset" namespace in the monitoring registry instead of using a new one like "inputs". Originally I planned to use to new namespace but I stayed with
dataset
because I wanted to prevent a breaking change for existing users of the /dataset API endpoint. This meant that metrics from the log input (and possibly others) that don't yet follow the conventions need to be filtered.Why is it important?
The data being produced from the
/inputs/
API is different than what we expected.Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Related issues
Logs
Prior to this change when using the
log
input you would get data like this from the/inputs/
API. This data lacks anid
or aninput
name. Plus it creates an entry for every file rather than one entry for the log input itself (which could lead to a lot more data than we expected).