[kube-prometheus-stack] Can't set root_url
vhartmannselfee opened this issue · 2 comments
Describe the bug a clear and concise description of what the bug is.
Hello,
M
Best regards,
What's your helm version?
3.15.4-1
What's your kubectl version?
1.29.0
Which chart?
kube-prometheus-stack
What's the chart version?
61.9.0
What happened?
I would like to have custom value in grafana.ini for root_url:
I put in my values.yaml:
grafana.ini:
server:
domain: grafana.prod.toto.info
port: 80
root_url: http://grafana.prod.toto.info
But it does'nt add these values to my grafana.ini stored in prometheus-grafana configmap
Thanks for your help,
What you expected to happen?
I expected changes in prometheus-grafana configmap
How to reproduce it?
Install helm charts kube-prometheus-stack
Enter the changed values of values.yaml?
grafana.ini:
server:
domain: grafana.prod.toto.info
port: 80
root_url: http://grafana.prod.toto.info
Enter the command that you execute and failing/misfunctioning.
helm upgrade
Anything else we need to know?
No response
Unless you enable ingress, domain
gets set to ''
as per the default values. Otherwise, domain
gets set to an ingress host.
This should work (with a literal for domain in root_url
):
grafana:
grafana.ini:
server:
http_port: 80
root_url: http://grafana.prod.toto.info:%(http_port)s/
Hi @zeritti ,
with http_port i have this error
api.HTTPServer run error: failed to open listener on address 0.0.0.0:80: listen tcp 0.0.0.0:80: bind: permission denied
When i only have
grafana:
grafana.ini:
server:
root_url: http://grafana.prod.toto.info:%(http_port)s/
It works !
Thanks for your help !