We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0736b86 commit 8ba7338Copy full SHA for 8ba7338
prometrix/auth.py
@@ -22,7 +22,7 @@ def azure_authorization(cls, config: PrometheusConfig) -> bool:
22
@classmethod
23
def get_authorization_headers(cls, config: PrometheusConfig) -> Dict:
24
if isinstance(config, CoralogixPrometheusConfig):
25
- return {"token": config.prometheus_token}
+ return {"Authorization": (f"Bearer {config.prometheus_token}")}
26
elif config.prometheus_auth:
27
return {"Authorization": config.prometheus_auth.get_secret_value()}
28
elif cls.azure_authorization(config):
0 commit comments