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

Enhance "--breakout hostname=" to support a list i.e hostname=A,B,C #110

Open
HughNhan opened this issue Jul 31, 2024 · 1 comment
Open
Assignees
Labels
enhancement New feature or request

Comments

@HughNhan
Copy link

Currently "hostname=" can only take on one value.

[root@dhcp-10-26-9-237 latest]#  crucible get metric --source mpstat --type Busy-CPU --period C14AD596-453D-11EF-9DFF-A4AF4102E06C --breakout hostname                                                                                                                                                                          
*** NOTICE: Crucible is at least 10 commits behind.  See 'crucible repo info' for details. ***                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                
Checking for httpd...appears to be running                                                                                                                                                                                                                                                                                      
Checking for OpenSearch...appears to be running                                                                                                                                                                                                                                                                                 
Available breakouts:  benchmark-name,benchmark-role,core,csid,cstype,die,engine-id,engine-role,engine-type,num,osruntime,package,thread,tool-name,type,endpoint-label,hosted-by,hypervisor-host,userenv                                                                                                                         
                                                                                                                                                                                                                                                                                                                                
                                                               18-07-2024                                                                                                                                                                                                                                                       
 source     type                                      hostname   19:40:01                                                                                                                                                                                                                                                       
-------------------------------------------------------------------------                                                                                                                                                                                                                                                       
 mpstat Busy-CPU appworker-0.blueprint-cwl.nokia.core.bos2.lab      10.51                                                                                                                                                                                                                                                       
 mpstat Busy-CPU    master-0.blueprint-cwl.nokia.core.bos2.lab       3.07                                                                                                                                                                                                                                                       
 mpstat Busy-CPU    master-1.blueprint-cwl.nokia.core.bos2.lab       2.74                                                                                                                                                                                                                                                       
 mpstat Busy-CPU    master-2.blueprint-cwl.nokia.core.bos2.lab       1.82                                                                                                                                                                                                                                                       
 mpstat Busy-CPU                              rhel-performance       2.49                                                                                                                                                                                                                                                       
[root@dhcp-10-26-9-237 latest]#  crucible get metric --source mpstat --type Busy-CPU --period C14AD596-453D-11EF-9DFF-A4AF4102E06C --breakout hostname=appworker-0.blueprint-cwl.nokia.core.bos2.lab                                                                                                                            
*** NOTICE: Crucible is at least 10 commits behind.  See 'crucible repo info' for details. ***                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                
Checking for httpd...appears to be running                                                                                                                                                                                                                                                                                      
Checking for OpenSearch...appears to be running                                                                                                                                                                                                                                                                                 
Available breakouts:  benchmark-name,benchmark-role,core,csid,cstype,die,engine-id,engine-role,engine-type,hostname,num,osruntime,package,thread,tool-name,type,endpoint-label,hosted-by,hypervisor-host,userenv                                                                                                                
                                                                                                                                                                                                                                                                                                                                
                                                                        18-07-2024                                                                                                                                                                                                                                              
 source     type hostname=appworker-0.blueprint-cwl.nokia.core.bos2.lab   19:40:01                                                                                                                                                                                                                                              
----------------------------------------------------------------------------------                                                                                                                                                                                                                                              
 mpstat Busy-CPU          appworker-0.blueprint-cwl.nokia.core.bos2.lab      10.51                                                                                                                                                                                                                                              
[root@dhcp-10-26-9-237 latest]#  crucible get metric --source mpstat --type Busy-CPU --period C14AD596-453D-11EF-9DFF-A4AF4102E06C --breakout hostname=appworker-0.blueprint-cwl.nokia.core.bos2.lab,master-0.blueprint-cwl.nokia.core.bos2.lab                                                                                
*** NOTICE: Crucible is at least 10 commits behind.  See 'crucible repo info' for details. ***

Checking for httpd...appears to be running
Checking for OpenSearch...appears to be running
/opt/crucible/repos/https:github.com:perftool-incubator/CommonDataModel/queries/cdmq/node_modules/http-response-object/lib/index.js:51
            throw err;
            ^
@k-rister k-rister added the enhancement New feature or request label Jul 31, 2024
@k-rister k-rister moved this from Queued to Todo in Crucible Tracking Jul 31, 2024
@sferlin
Copy link

sferlin commented Oct 10, 2024

Likewise, I would like "num" to receive a list of CPUs as we often filter by selected CPUs e.g. if we reserve CPUs in a system to run a workload. Two suggestions for the format num='0,1,2...' or num=1,num=2.
I can open a new issue, even though this "feature wish" is very related to hostname ^^^.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

4 participants