GoogleCloudPlatform / GoogleCloudPlatform/prometheus-engine

Prometheus UI is broken after adding authentication

Open
#487 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
232
Forks
109
Avg merge
1d 3h
Merged PRs (30d)
27

Description

After implementing #242, Prometheus UI is broken. It doesn't pass any basicAuth headers to GMP. I solved it by adding some browser extension. Here's how:

1. Configure Prometheus UI to use AUTH_USERNAME and AUTH_PASSWORD
2. Run Prometheus UI:
``` kubectl port-forward --namespace prometheus svc/infra-monitoring-prometheus-frontend-production 8080:9090```
3. Open the browser at http://localhost:8080, and make sure it's failing to load metrics
![image](https://github.com/GoogleCloudPlatform/prometheus-engine/assets/4534374/3e474a76-6c16-4134-9b93-e1152022a76f)

But Grafana access works fine.

I found a way to overcome it:
1. Install [Modify Header Value](https://mybrowseraddon.com/modify-header-value.html) addon to your browser.
6. In addon, setup basic auth header with the values from your prometheus chart.
7. Make sure your prometheus dashboard is now working (i.e. no erros, metrics can be searched, etc.).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.