Alert request to Prometheus for Project System not working

I have enabled monitoring in Rancher 2.2.6 both on the System project and Default project.

Here I am trying to create simple alert in grafana under system project :

The query is:

And it return error : tsdb.HandleRequest() error bad_response: bad response code 401
I have enable basic auth on grafana but it seems the data source not configured for basic auth.

But it works fine when I try create alert in default project.
Do I need to setup additional config?


Hi @JinFreaks Did u solve this problem. I have also facing problem same as you.

1 Like

Hi, looks like there is default datasource endpoint with prometheus-auth in front.
I have created new datasource with http://access-prometheus endpoint and it works.

1 Like