Skip to content

Commit

Permalink
fixing int timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewFarley committed Jan 15, 2022
1 parent 6c30f2a commit bb2b5d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def detectPrometheusURL():
PROMETHEUS_URL = os.getenv('PROMETHEUS_URL') or detectPrometheusURL() # Where prometheus is, if not provided it can auto-detect it if it's in the same namespace as us
DRY_RUN = True if os.getenv('DRY_RUN', False) else False # If we want to dry-run this
PROMETHEUS_LABEL_MATCH = os.getenv('PROMETHEUS_LABEL_MATCH') or '' # A PromQL label query to restrict volumes for this to see and scale, without braces. eg: 'namespace="dev"'
HTTP_TIMEOUT = os.getenv('HTTP_TIMEOUT') or 15 # Allows to set the timeout for calls to Prometheus and Kubernetes. This might be needed if your Prometheus or Kubernetes is over a remote WAN link with high latency and/or is heavily loaded
HTTP_TIMEOUT = int(os.getenv('HTTP_TIMEOUT')) or 15 # Allows to set the timeout for calls to Prometheus and Kubernetes. This might be needed if your Prometheus or Kubernetes is over a remote WAN link with high latency and/or is heavily loaded
PROMETHEUS_VERSION = "Unknown" # Uses to detect the availability of a new function called present_over_time only available on Prometheus v2.30.0 or newer, this is auto-detected and updated, not set by a user
VERBOSE = True if os.getenv('VERBOSE', "False").lower() == "true" else False # If we want to verbose mode

Expand Down

0 comments on commit bb2b5d6

Please sign in to comment.