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

[Monitoring] Fix inaccuracies in logstash pipeline listing metrics #55868

Merged
merged 5 commits into from
Jan 28, 2020

Conversation

chrisronline
Copy link
Contributor

Resolves #55755

@inqueue noticed an issue with what shows up in the Logstash Overview Events Emitted chart versus what shows in the Logstash Pipelines Listing Events Emitted listing.

In the overview chart, you can see the total events emitted are ~77k.
Screen Shot 2020-01-24 at 11 29 44 AM

In the listing page, if you sum the events emitted, it's only ~6k
Screen Shot 2020-01-24 at 11 30 49 AM

After some digging (and help from @ycombinator), we discovered a couple of things:

This PR addresses that by ensuring we execute the same kind of query so we get the same results. We are able to do that by, instead of sending a single query to fetch all pipeline metrics, we send individual ones (in parallel) for each known pipeline.

Now, we see:
Screen Shot 2020-01-24 at 12 45 44 PM

It's a little complicated with logstash monitoring documents, due to the nested fields, so you'll notice some of that in the code.

Testing

  • Setup logstash monitoring and ensure logstash is running with multiple pipelines
  • Verify the events emitted chart on the overview page is indeed the sum of the events emitted metrics on the listing page

@elasticmachine
Copy link
Contributor

Pinging @elastic/stack-monitoring (Team:Monitoring)

@chrisronline
Copy link
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Copy link
Contributor

@igoristic igoristic left a comment

Choose a reason for hiding this comment

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

Looks good! Great work 👏

@chrisronline chrisronline merged commit 30dbdf7 into elastic:master Jan 28, 2020
@chrisronline chrisronline deleted the monitoring/ls_pipelines branch January 28, 2020 16:29
chrisronline added a commit to chrisronline/kibana that referenced this pull request Jan 28, 2020
…lastic#55868)

* Change how we fetch pipeline listing metrics to match what other charts show

* Fix tests

* Fix tests

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
chrisronline added a commit to chrisronline/kibana that referenced this pull request Jan 28, 2020
…lastic#55868)

* Change how we fetch pipeline listing metrics to match what other charts show

* Fix tests

* Fix tests

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
gmmorris added a commit to gmmorris/kibana that referenced this pull request Jan 28, 2020
* master: (21 commits)
  [SIEM][Detection Engine] critical blocker updates to latest ECS version
  [Monitoring] Fix inaccuracies in logstash pipeline listing metrics (elastic#55868)
  Resetting errors and removing duplicates (elastic#56054)
  Add flag to opt out from sub url tracking (elastic#55672)
  [SIEM][Detection Engine] critical bug, fixes duplicate tags
  [ML] Anomaly Detection: Fix persist/restore of refreshInterval in globalState. (elastic#56113)
  [ML] Single Metric Viewer: Fix annnotations refresh. (elastic#56107)
  adapt ObjectToConfigAdapter.getFlattenedPaths to consider arrays as final values (elastic#56105)
  Add Appender.receiveAllLevels option to fix LegacyAppender (elastic#55752)
  [ML] Process delimited files like semi-structured text (elastic#56038)
  Charts plugin (combining ui/color_maps and EuiUtils) (elastic#55469)
  fix tutorial documentation (elastic#55996)
  [ML] Fix persist/restore of time/refreshInterval in data visualizer. (elastic#56122)
  [Index Management] Fix errors with validation (elastic#56072)
  [Index Management] Add try/catch when parsing index filter from URI (elastic#56051)
  [NP] add HTTP resources testing strategies (elastic#54908)
  [ML] Single Metric Viewer: Fix brush update on short recent timespans. (elastic#56125)
  [Uptime] Add timeout for slow process to skipped functional tests (elastic#56065)
  refactor (elastic#56121)
  Move tests in dashboard into appropriate folders (elastic#55304)
  ...
chrisronline added a commit that referenced this pull request Jan 28, 2020
…55868) (#56177)

* Change how we fetch pipeline listing metrics to match what other charts show

* Fix tests

* Fix tests

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
chrisronline added a commit that referenced this pull request Jan 28, 2020
…55868) (#56176)

* Change how we fetch pipeline listing metrics to match what other charts show

* Fix tests

* Fix tests

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
@chrisronline
Copy link
Contributor Author

Backport:

7.6.1: d5fe767
7.x: 001dcb9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Monitoring] Logstash pipeline listing page show inaccurate rate data
4 participants