From fecd641cbac34a61eea99d4315e1e359bd61d533 Mon Sep 17 00:00:00 2001 From: David van der Spek Date: Thu, 29 Aug 2024 09:51:01 +0200 Subject: [PATCH] fix: allow overriding mimir headers --- .../prometheus/metrics_service/prometheus_metrics_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/robusta_krr/core/integrations/prometheus/metrics_service/prometheus_metrics_service.py b/robusta_krr/core/integrations/prometheus/metrics_service/prometheus_metrics_service.py index 71d5ae8f..fbc5c3c4 100644 --- a/robusta_krr/core/integrations/prometheus/metrics_service/prometheus_metrics_service.py +++ b/robusta_krr/core/integrations/prometheus/metrics_service/prometheus_metrics_service.py @@ -96,8 +96,8 @@ def __init__( logger.info(f"Using {self.name()} at {self.url} for cluster {cluster or 'default'}") - headers = {k: v.get_secret_value() for k, v in settings.prometheus_other_headers.items()} - headers |= self.additional_headers + headers = self.additional_headers + headers |= {k: v.get_secret_value() for k, v in settings.prometheus_other_headers.items()} if self.auth_header: headers |= {"Authorization": self.auth_header}