-
Notifications
You must be signed in to change notification settings - Fork 32
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
Unify Process Values #5500
Unify Process Values #5500
Conversation
Local TestStepsgit clone https://github.com/wazuh/wazuh-qa.git
cd wazuh-qa
git checkout enhancement/5479-unify-process-values
python3 -m pip install -r requirements.txt
cd deps/wazuh_testing/
python3 setup.py install
cd wazuh_testing/scripts/
python3 data_visualizations.py -s wazuh-indexer.csv wazuh-indexer_child_1.csv -u True -t binary -d ~ |
982d677
to
a21ace0
Compare
Jenkins Test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -32,7 +32,7 @@ class DataVisualizer: | |||
base_name (str, optional): base name used to store the images. | |||
""" | |||
def __init__(self, dataframes, target, compare=False, store_path=gettempdir(), x_ticks_granularity='minutes', | |||
x_ticks_interval=1, base_name=None, columns_path=None): | |||
x_ticks_interval=1, base_name=None, columns_path=None, unify=False): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
x_ticks_interval=1, base_name=None, columns_path=None, unify=False): | |
x_ticks_interval=1, base_name=None, columns_path=None, unify_child_daemon_metrics=False): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Solved in 4f12863
if unify.lower() in ["true"]: | ||
self._unify_dataframes() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if unify.lower() in ["true"]: | |
self._unify_dataframes() | |
if unify_child_daemons_metrics: | |
self._unify_dataframes() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Solved in 4f12863
UpdateI have fixed the variable name and changed the logic to unify only the correct daemons. I have yet to fix a bug in the |
UpdateThe problem was that, when creating the dataframe, a grouping by Local TestStepsgit clone https://github.com/wazuh/wazuh-qa.git
cd wazuh-qa
git checkout enhancement/5479-unify-process-values
python3 -m pip install -r requirements.txt
cd deps/wazuh_testing/
python3 setup.py install
cd wazuh_testing/scripts/
python3 data_visualizations.py -s wazuh-apid.csv wazuh-apid_child_1.csv wazuh-apid_child_2.csv wazuh-analysisd.csv wazuh_clusterd.csv wazuh_clusterd_child_1.csv -u True -t binary -d ~ |
Jenkins Test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some final changes
deps/wazuh_testing/wazuh_testing/tools/performance/visualization.py
Outdated
Show resolved
Hide resolved
deps/wazuh_testing/wazuh_testing/tools/performance/visualization.py
Outdated
Show resolved
Hide resolved
deps/wazuh_testing/wazuh_testing/scripts/data_visualizations.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, gj
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GJ! Remember to add the changelog entry
Description
Create a method in the
DataVisualizer
class that allows to unify the data obtained from the processes and subprocesses so that, when a plot is generated, the data of processes and subprocesses do not appear but all the data unified in a single process.Testing performed
The tests can be performed locally using the
DataVisualizer
or using the CLUSTER-Workload_benchmarks_metrics pipeline with the simplest possible tests. It is only necessary to activate the option to unify data and provide 2 or more CSV of processes (one process and one or more sub processes).