Query Ranges Change

Hey people, if someone would be so kind to help me with this.

Here is a link to what I want to achieve : HTTP API | Prometheus

response = requests.get('{0}/api/v1/query'.format(sys.argv[1]),
        params={'query': sys.argv[2]})
results = response.json()['data']['result']

I want to add the range_query with start & end times and replace the current single query.

Any help would be greatly appreciated or point me into the right direction.

Thanks :pray:

Welcome! The docs for passing query params in requests should get you started. As a test, you can always just write the query params into the URL.