@@ -91,6 +91,7 @@ def check_prometheus_connection(self, params: dict = None) -> bool:
9191 headers = self .headers ,
9292 params = params ,
9393 auth = self .auth ,
94+ cert = self ._session .cert
9495 )
9596 return response .ok
9697
@@ -127,6 +128,7 @@ def get_label_names(self, params: dict = None):
127128 headers = self .headers ,
128129 params = params ,
129130 auth = self .auth ,
131+ cert = self ._session .cert
130132 )
131133
132134 if response .status_code == 200 :
@@ -156,6 +158,7 @@ def get_label_values(self, label_name: str, params: dict = None):
156158 headers = self .headers ,
157159 params = params ,
158160 auth = self .auth ,
161+ cert = self ._session .cert
159162 )
160163
161164 if response .status_code == 200 :
@@ -206,6 +209,7 @@ def get_current_metric_value(
206209 verify = self .ssl_verification ,
207210 headers = self .headers ,
208211 auth = self .auth ,
212+ cert = self ._session .cert
209213 )
210214
211215 if response .status_code == 200 :
@@ -297,6 +301,7 @@ def get_metric_range_data(
297301 verify = self .ssl_verification ,
298302 headers = self .headers ,
299303 auth = self .auth ,
304+ cert = self ._session .cert
300305 )
301306 if response .status_code == 200 :
302307 data += response .json ()["data" ]["result" ]
@@ -395,6 +400,7 @@ def custom_query(self, query: str, params: dict = None):
395400 verify = self .ssl_verification ,
396401 headers = self .headers ,
397402 auth = self .auth ,
403+ cert = self ._session .cert
398404 )
399405 if response .status_code == 200 :
400406 data = response .json ()["data" ]["result" ]
@@ -438,6 +444,7 @@ def custom_query_range(
438444 verify = self .ssl_verification ,
439445 headers = self .headers ,
440446 auth = self .auth ,
447+ cert = self ._session .cert
441448 )
442449 if response .status_code == 200 :
443450 data = response .json ()["data" ]["result" ]
0 commit comments