diff --git a/topic/autoscaling/autoscale.py b/topic/autoscaling/autoscale.py index 7dbae398..4ba14613 100644 --- a/topic/autoscaling/autoscale.py +++ b/topic/autoscaling/autoscale.py @@ -3,17 +3,17 @@ based on its Prometheus metrics endpoint. """ +import argparse import logging -import time import os -import argparse -from functools import reduce +import time from datetime import datetime -from prometheus_client.parser import text_string_to_metric_families +from functools import reduce + import requests +from prometheus_client.parser import text_string_to_metric_families from requests.auth import HTTPBasicAuth - # Date format for parsing datetime strings DATE_FORMAT = "%Y-%m-%dT%H:%M:%S.%f"