abc = "/a/b/pythonprogam.py --expr '((max(max_over_time(node_load15{job="acb"}[2d])) by(data) / count(node_cpu_seconds_total{mode="DEV" }) by(data) ) * 100)' --fields data::50"
want to execute the above command in python , I tried and its not working , throwing an error
Invalid parameter ‘query’: parse error at char 37: unterminated quoted string
abc = "/a/b/pythonprogam.py --expr '((max(max_over_time(node_load15{job="acb"}[2d])) by(data) / count(node_cpu_seconds_total{mode="DEV" }) by(data) ) * 100)' --fields data::50"
args = abc.split()
subprocess.run(args)
want to execute the above command in python , I tried and its not working , throwing an error
Invalid parameter ‘query’: parse error at char 37: unterminated quoted string