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

Add script to capture prometheus query execution time #1387

Draft
wants to merge 2 commits into
base: mvp_demo
Choose a base branch
from

Conversation

shreyabiradar07
Copy link
Contributor

Description

This PR adds a script which based on the input parameters runs the set of Prometheus queries, capturing the time taken, status and output of the PromQL queries over 15 days.

Collection of queries

  1. Default queries: Existing queries from MetricProfile
  2. Individual queries: Set of queries, capturing the container resource data (cpu and memory) by pod with imageOwners and imageWorkloads queries over 15days
  3. Grouped queries: Set of queries which group the container data by pod owner and workload on the fly over 15 days
  4. Grouped queries over 5 day windows: This collection uses the same set of grouped queries, instead divides the 15 days time range in three windows each corresponding to 5 days time range

Type of change

  • Bug fix
  • New feature
  • Docs update
  • Breaking change (What changes might users need to make in their application due to this PR?)
  • Requires DB changes

How has this been tested?

Please describe the tests that were run to verify your changes and steps to reproduce. Please specify any test configuration required.

  • New Test X
  • Functional testsuite

Test Configuration

  • Kubernetes clusters tested on: Openshift

Checklist 🎯

  • Followed coding guidelines
  • Comments added
  • Dependent changes merged
  • Documentation updated
  • Tests added or updated

Additional information

.

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.

1 participant