benchmark-runner icon indicating copy to clipboard operation
benchmark-runner copied to clipboard

Benchmark-runner: Add ability to run Prometheus queries and extract output into json format

Open ebattat opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe. Yes, we want to have ability to run Prometheus queries directly through benchmark-runner

Describe the solution you'd like We will have a queries file and benchmark-runner will parse it and run it one by one against Prometheus and return the result as json file and later upload it to Elastic and Display inside Grafana.

Describe alternatives you've considered There is option to use 3rd party tool like kube-burner but I preferred to reduced dependency issue

Additional context That will help us and other to get generic metric data like CPU, Memory per cluster/ node/ pod

ebattat avatar Jul 21 '22 14:07 ebattat

Example standalone code: https://github.com/RobertKrawitz/OpenShift4-tools/blob/main/prom-extract

Example metrics file: https://github.com/RobertKrawitz/OpenShift4-tools/blob/main/lib/clusterbuster/metrics-default.yaml

RobertKrawitz avatar Jul 21 '22 15:07 RobertKrawitz

Solved in PR

ebattat avatar Jun 21 '23 09:06 ebattat