Skip to content

Commit 4bd747b

Browse files
authored
Merge pull request #42 from BigRedS/coralogix-prom-api-change
#31 - Update Coralogix auth headers
2 parents 0736b86 + 8ba7338 commit 4bd747b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prometrix/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def azure_authorization(cls, config: PrometheusConfig) -> bool:
2222
@classmethod
2323
def get_authorization_headers(cls, config: PrometheusConfig) -> Dict:
2424
if isinstance(config, CoralogixPrometheusConfig):
25-
return {"token": config.prometheus_token}
25+
return {"Authorization": (f"Bearer {config.prometheus_token}")}
2626
elif config.prometheus_auth:
2727
return {"Authorization": config.prometheus_auth.get_secret_value()}
2828
elif cls.azure_authorization(config):

0 commit comments

Comments
 (0)