Using proxy with grafana

I am trying to use http_proxy and https_proxy from grafana to send alerts to telegram over internet.

Added http_proxy and https_proxy to /etc/sysconfig/grafana-server

but when I am trying to send a test message from grafana to telegram, it is giving me below error in log file :

invalid proxy URL port "proxy_password"

I assume here grafana is interpreting password (which is coming after first : mark) as port in https_proxy url.
The format of url is

I also validated that this proxy is working fine while running manually in the same format.

Please help.


There is that the url is not parsed correctly because username or password contain special characters. You can try URL-encoding username and password.