prometheus / promlens

PromLens – The query builder, analyzer, and explainer for PromQL
Apache License 2.0
581 stars 35 forks source link

allow to configure the withCredentials field #103

Open jes2ica opened 1 year ago

jes2ica commented 1 year ago

Our service needs to use credentials: “include" to in fecth() but currently withCredentials is hardcoded to false: https://github.com/prometheus/promlens/blob/171530ef26f18e43227a26d1d58d73c48a50fd41/app/src/pages/PromLens.tsx#L157

Can we add a flag similar to defaultPrometheusURL to allow users to configure the withCredentials field?