Authenticate Alert Rule that use Data Source with Forward OAuth

What Grafana version and what operating system are you using?

  • 12.3

What are you trying to achieve?

  • I am trying to authenticate my alert rule using a data source that uses forward OAuth as its authentication method. When the alert is evaluated, it receives a 401, because there isn’t a way to pass authentication when configuring the alert. The endpoint that the data source queries (Mimir, Loki, Tempo) requires a Bearer token, but the alerting engine doesn’t forward it.

How are you trying to achieve it?

  • I don`t know if it is possible to achieve it.