Include pipeline processing-load snapshot in support bundles#26161
Open
xd4rker wants to merge 7 commits into
Open
Include pipeline processing-load snapshot in support bundles#26161xd4rker wants to merge 7 commits into
xd4rker wants to merge 7 commits into
Conversation
This file contains hidden or 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
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.
Closes https://github.com/Graylog2/graylog-plugin-enterprise/issues/14145
Description
pipeline-processing-load.jsonwith the cluster-wide Processing Load (per pipeline-stage-rule, per pipeline, per rule), the same data served byGET /system/pipelines/processing-load.errors.json.ProcessingLoadResourcewas extracted into aProcessingLoadBuilderso it can be reused to generate the support-bundle snapshot.How Has This Been Tested?
Preconditions: a running Graylog with at least one pipeline connected to a stream (with rules) and some message traffic flowing through it.
Enable debug metrics: Go to System → Pipelines (or the Rules page) and use the debug-metrics banner to enable pipeline rule metrics. Once enabled, a "Pipeline Load (15m)" column appears on the pipeline/rules pages. After a little traffic it should show non-zero values.
Create a support bundle: Go to System → Logging, and in the Support Bundle section click Create Support Bundle. When it finishes, download the bundle and unzip it.
Verify (metrics ON): At the root of the bundle, alongside
cluster.json, not inside the per-node folders, there should be apipeline-processing-load.json. Open it and confirm"available": truewith per-rule / per-pipeline load figures.Verify (metrics OFF): Disable debug metrics from the Pipelines page, create and download another bundle, and confirm
pipeline-processing-load.jsonis absent from the root.Types of changes
Checklist: