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

Prometheus metrics #61

Merged
merged 1 commit into from
Nov 22, 2023
Merged

Prometheus metrics #61

merged 1 commit into from
Nov 22, 2023

Conversation

rsevilla87
Copy link
Member

@rsevilla87 rsevilla87 commented Nov 15, 2023

Type of change

  • Refactor
  • New feature
  • Bug fix
  • Optimization
  • Documentation Update

Description

Scrape prometheus metrics:

  • avg_cpu_usage_router_pods
  • avg_cpu_usage_router_nodes
  • avg_memory_usage_router_pods
  • avg_memory_usage_router_nodes

The indexed documents now look like:

    "timestamp": "2023-11-15T23:17:30.447184191Z",                                                                     
    "total_avg_rps": 15516.18,                                                                                                                                                                                                                
    "rps_stdev": 1346.18,                                                                                                                                                                                                                     
    "stdev_lat": 6204.67,                                                                                              
    "avg_lat_us": 2053.89,                                                                                                                                                                                                                    
    "max_lat_us": 247897,                                                                                                                                                                                                                     
    "p90_lat_us": 1985,                                                                                                                                                                                                                       
    "p95_lat_us": 4330,                                                                                                                                                                                                                       
    "p99_lat_us": 23450,                                                                                               
    "http_errors": 0,                                                                                                  
    "read_errors": 0,                                                                                                  
    "write_errors": 0,                                                                                                                                                                                                                        
    "requests": 2793589,                                                                                                                                                                                                                      
    "timeouts": 0,                                                                                                                                                                                                                            
    "version": "issue-60@19a51244251ae8318f30e622427d92a2099166be",                                                                                                                                                                           
    "infra_metrics": {                                                                                                                                                                                                                        
      "avg_cpu_usage_router_nodes": 0.58,                                                                                                                                                                                                     
      "avg_cpu_usage_router_pods": 0.77,                                                                                                                                                                                                      
      "avg_memory_usage_router_nodes": 13500550826.67,                                                                                                                                                                                        
      "avg_memory_usage_router_pods": 131624277.33                                                                                                                                                                                            
    },                                                                                                                                                                                                                                        
    "platform": "AWS",                                                                                                                                                                                                                        
    "clusterType": "self-managed",                                                                                                                                                                                                            
    "ocpVersion": "4.13.13",                                                                                                                                                                                                                  
    "ocpMajorVersion": "4.13",      

Related Tickets & Documents

Checklist before requesting a review

  • I have performed a self-review of my code.
  • If it is a core feature, I have added thorough tests.

Testing

  • Please describe the System Under Test.
  • Please provide detailed steps to perform tests related to this code change.
  • How were the fix/results from this change verified? Please provide relevant screenshots or results.

@rsevilla87 rsevilla87 added the enhancement New feature or request label Nov 16, 2023
Signed-off-by: Raul Sevilla <[email protected]>

Add the bytes suffix

Signed-off-by: Raul Sevilla <[email protected]>
Copy link
Member

@krishvoor krishvoor left a comment

Choose a reason for hiding this comment

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

/lgtm

@rsevilla87 rsevilla87 merged commit b38a210 into cloud-bulldozer:main Nov 22, 2023
2 checks passed
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
None yet
Development

Successfully merging this pull request may close these issues.

[RFE] Scrape CPU/Memory utilization during the test
2 participants