How to change web.listen-address of statefulset.apps/prometheus-user-workload

Latest response

In order to use costom metrics in HPA, I found the document:

Obviously, the configuration of prometheus-url is wrong in the document:

Because from statefulset.apps/prometheus-user-workload in Namespace openshift-user-workload-monitoring, we can see, prometheus just listen port, as below:

I tried to change it to, but it will automatically restore. so who can help me?



It's hardcode in the statefullset go program.

I am seeing the same thing in 4.7. A lot of clients want to access the Prometheus UI. Can we define it somehow?

As a workaround, I have scaled down prometheus-operator to zero and changed the STS to listen to I have also added the port to be exposed by the container.