I have a pmm-server hosted on an AWS EKS cluster and exposed it on localhost, I am able to access the PMM UI as well as the /prometheus endpoint that has Single-node VictoriaMetrics.
When I am adding pmm’s service (http://monitoring-service.pmm.svc.cluster.local/prometheus) as a data source to Grafana also hosted in the same cluster, I am getting 401 unauthorized. I had to use Chrome’s debug tools and pass cookie session to add the datasource. Is there a better way to do the authentication?
Yes, I understood that you are using the PMM UI. You asked for an alternate way to provide un/pw to PMM so you could access the endpoint. The same situation is required when accessing PMM on CLI. Using the URL format I showed, you should be able to access the PMM endpoint.