Skip to content

Commit 672970c

Browse files
author
mayankkholia
committed
added proxy usage in docs
1 parent cb0ec75 commit 672970c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

prometheus_api_client/prometheus_connect.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ class PrometheusConnect:
3636
:param retry: (Retry) Retry adapter to retry on HTTP errors
3737
:param auth: (optional) Auth tuple to enable Basic/Digest/Custom HTTP Auth. See python
3838
requests library auth parameter for further explanation.
39+
:param proxy: (Optional) Proxies dictonary to enable connection through proxy.
40+
Example: {"http_proxy": "<ip_address/hostname:port>", "https_proxy": "<ip_address/hostname:port>"}
3941
"""
4042

4143
def __init__(

0 commit comments

Comments
 (0)