-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Stack Monitoring] Do not add empty include array when retrieving log…
…stash pipelines (#202039) ## Summary This PR fixes the query that retrieves Logstash pipeline stats and metrics to be displayed in Stack Monitoring. The problem with the existing query is that a `terms` aggregation contains an empty `"include": []` filtering array, but that has the nasty effect of excluding everything and not returning anything, hence the screen is empty. The fix is to only add the `include` array if it's not empty. The PR also fixes a wrong field name used in a cardinality aggregation: `logstash.node.stats.logstash.uuid` instead of `logstash_stats.logstash.uuid` Closes #202020 ### Checklist - [X] This was checked for breaking HTTP API changes, and any breaking changes have been approved by the breaking-change committee. The `release_note:breaking` label should be applied in these situations. --------- Co-authored-by: Chris Earle <[email protected]> (cherry picked from commit b7e46bd)
- Loading branch information
1 parent
4406609
commit 07f011d
Showing
3 changed files
with
23 additions
and
26 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
x-pack/plugins/monitoring/server/lib/metrics/__snapshots__/metrics.test.js.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 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