A tool to connect to list of thanos endpoints and compute recommended CPU and memory settings , based on historic usage and resource request.
- Have the ./input/thanos.json file updated with your thanos urls and respective tokens
- Update the ./recommend.sh file with the valid GRAFANA_DASHBOARD_UID. (Default uid is
85a562078cdf77779eaa1add43ccec1e
. The uid is available in the bottom part of the configmapgrafana-dashboard-k8s-compute-resources-namespace-pods
.) - run shell script ./recommend.sh
Output :
- Go to the logs folder and look for .csv files with recommendations. CSV files are named after the index order of the thanos url.
- Have the ./charts/job.yaml file updated with your image pull secret
- Have the ./charts/configmap.yaml file updated with your thanos urls and respective tokens
- Have the ./charts/pvc.yaml file updated with your storageclass name
- run
oc apply -f ./charts
Output :
- Go to the current date folder in the PVC mount and look for .csv files with recommendations. CSV files are named after the index order of the thanos url.
- Charts directory include a sleeping pod that can be used to access the PVC mount
For more details to understand on how the system works, proceed here
The output of the thanos-metrics-analyzer is a CSV file with max usage values and recommendations for CPU and memory utilization. No charts were made available to customers in the RHACM console.
With the new enhancements made to the developer preview experience, including simplified user navigation directly in the RHACM console, Grafana dashboards are now enriched with right-sizing recommendations for cluster as well as namespace level based on CPU and memory information.
For more details checkout this page.