Basic auth in grafana

How to use basic in the data source of grafana .

Hi @shruti,

Did you already check the documentation regarding it i.e.

apiVersion: 1


  • name: Prometheus
    type: prometheus
    access: proxy
    url: localhost"9090
    isDefault: true
    basicAuth: true
    basicAuthUser: abcd
    basicAuthPassword: 12345trewq!@#$%TREWQ

I tried to give basic auth in this format but it is not working showing below erro

kindly help me with this

Kindly can anyone help with this.

I am sorry I do not understand very well.

Let’s start from scratch. Are you trying to set up a simple Prometheus as Datasource inside Grafana?