benchmark-runner
benchmark-runner copied to clipboard
Benchmark-runner: Add ability to run Prometheus queries and extract output into json format
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
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
Solved in PR