From cce1b8af965d8fe069e9bd3da5d78460127080b9 Mon Sep 17 00:00:00 2001 From: bharathappali Date: Tue, 17 May 2022 13:53:43 +0530 Subject: [PATCH 1/2] Initial structure Signed-off-by: bharathappali --- prometheus-autotune-ras/prom_ras.py | 160 ++++++++++++++++++++++++++++ 1 file changed, 160 insertions(+) create mode 100755 prometheus-autotune-ras/prom_ras.py diff --git a/prometheus-autotune-ras/prom_ras.py b/prometheus-autotune-ras/prom_ras.py new file mode 100755 index 0000000..6dbbdae --- /dev/null +++ b/prometheus-autotune-ras/prom_ras.py @@ -0,0 +1,160 @@ +#!/usr/bin/python3 + +# imports +import getopt +import sys +import validators +import subprocess +from shutil import which + +# Constants + +CMD_KUBECTL = "kubectl" +CMD_CURL = "curl" +DEFAULT_NAMESPACE = "default" + + +def usage(): + print(""" + USAGE: + LONG: + prom_ras.py --podname="" --podsearch="" --duration="