From a575655318b8baca90f5e9df87250e43a0237636 Mon Sep 17 00:00:00 2001 From: UtkarshShah0 <93548048+UtkarshShah0@users.noreply.github.com> Date: Sun, 24 Apr 2022 16:15:32 +0530 Subject: [PATCH] Fixed issue #874 In push_prometheus_alert function replaced http with https to make it more secure --- delfin/exporter/prometheus/alert_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/delfin/exporter/prometheus/alert_manager.py b/delfin/exporter/prometheus/alert_manager.py index 1dbcc633d..4eb37d94c 100644 --- a/delfin/exporter/prometheus/alert_manager.py +++ b/delfin/exporter/prometheus/alert_manager.py @@ -51,7 +51,7 @@ def push_prometheus_alert(self, alerts): self.alerts.append(dict) try: - response = requests.post('http://' + host + ":" + port + + response = requests.post('https://' + host + ":" + port + '/api/v1/alerts', json=self.alerts) if response.status_code != 200: