Skip to content

Commit

Permalink
Fixed issue sodafoundation#874
Browse files Browse the repository at this point in the history
In push_prometheus_alert function replaced http with https to make it more secure
  • Loading branch information
UtkarshShah0 authored Apr 24, 2022
1 parent 795934f commit a575655
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion delfin/exporter/prometheus/alert_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a575655

Please sign in to comment.