summaryrefslogtreecommitdiff
path: root/robusta_krr/utils
diff options
context:
space:
mode:
authorYonah Dissen <47282577+yonahd@users.noreply.github.com>2023-04-27 16:51:04 +0300
committerGitHub <noreply@github.com>2023-04-27 16:51:04 +0300
commit26b867a3fa859a112e8eb0a6c1e18930355fe03d (patch)
tree0cc6bd2b116e8c02846811d89fa7b9a1e5d75e05 /robusta_krr/utils
parent978218e0a72dff0d19a39462043a7ca03eae878b (diff)
Update service_discovery.py
Small fix to ingress URL
Diffstat (limited to 'robusta_krr/utils')
-rw-r--r--robusta_krr/utils/service_discovery.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/robusta_krr/utils/service_discovery.py b/robusta_krr/utils/service_discovery.py
index a8b6a97..47d025f 100644
--- a/robusta_krr/utils/service_discovery.py
+++ b/robusta_krr/utils/service_discovery.py
@@ -53,7 +53,7 @@ class ServiceDiscovery(Configurable):
ingress: V1Ingress = ingress_list.items[0]
prometheus_host = ingress.spec.rules[0].host
- return prometheus_host
+ return f"http://{prometheus_host}"
def find_url(self, selectors: list[str], *, api_client: Optional[ApiClient] = None) -> Optional[str]:
"""