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

Fix data visualization script graphics generation #5021

Merged
merged 3 commits into from
Mar 7, 2024

Conversation

GGP1
Copy link
Member

@GGP1 GGP1 commented Feb 23, 2024

Description

Fixes some errors from the data visualization script during the cluster, analysisd and remoted statistics graphics generation.

Build: https://ci.wazuh.info/job/CLUSTER-Workload_benchmarks_metrics/482/

Artifacts: artifacts_logcollector.zip

The graphic generation is failing because the pull request #5007 was merged and now the analysisd and remoted statistics are gathered from the API endpoints instead of the .state files, and the visualization script hasn't been updated.

The changes introduced in this pull request fix the graphics generation for the logcollectord statistics files only. To generate graphics using the files containing statistics from the API, a script refactor is needed. We've opened #5022 to work on that.

Testing performed

Validation Jenkins Local OS Commit Notes
Graphs are generated ⚫⚫ executions / remote Pop_OS Nothing to highlight

@GGP1 GGP1 self-assigned this Feb 23, 2024
@GGP1 GGP1 force-pushed the fix/4975-data-visualization-script branch from 5f44e31 to 64726e9 Compare February 23, 2024 16:09
@GGP1 GGP1 linked an issue Feb 23, 2024 that may be closed by this pull request
nico-stefani
nico-stefani previously approved these changes Feb 28, 2024
Copy link
Member

@nico-stefani nico-stefani left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@Selutario Selutario 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! Just an additional request: please, add a changelog entry for these changes.

Edit: it seems two minor changes are also needed for the linter check to pass:

Selutario
Selutario previously approved these changes Feb 29, 2024
rauldpm
rauldpm previously approved these changes Feb 29, 2024
@rauldpm rauldpm dismissed their stale review February 29, 2024 18:44

A CI build is needed

Copy link
Member

@rauldpm rauldpm left a comment

Choose a reason for hiding this comment

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

Please add a CI build

@GGP1 GGP1 force-pushed the fix/4975-data-visualization-script branch 2 times, most recently from c00f1b3 to f9a01e6 Compare March 1, 2024 18:22
@GGP1 GGP1 force-pushed the fix/4975-data-visualization-script branch 2 times, most recently from a8113c8 to 83415a3 Compare March 1, 2024 18:36
@GGP1 GGP1 force-pushed the fix/4975-data-visualization-script branch from 83415a3 to 1bfd713 Compare March 1, 2024 18:37
@GGP1 GGP1 requested review from Selutario and rauldpm March 1, 2024 18:39
@Selutario Selutario merged commit eadc53d into 4.8.0 Mar 7, 2024
4 checks passed
@Selutario Selutario deleted the fix/4975-data-visualization-script branch March 7, 2024 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Data visualization script fails to generate certain graphs
4 participants