It did look straightforward to enable TLS/SSL to connect to Azure MySQL database but it doesn’t seem to connect. I receive following in log,
Feb 15 11:14:58 AZ-P-PERFDASH-VS01 grafana-server[7017]: t=2022-02-15T11:14:58+0000 lvl=info msg=“Connecting to DB” logger=sqlstore dbtype=mysql
Feb 15 11:14:58 AZ-P-PERFDASH-VS01 grafana-server[7017]: Failed to start grafana. error: failed to connect to database: invalid value / unknown config name: custom
Feb 15 11:14:58 AZ-P-PERFDASH-VS01 grafana-server[7017]: failed to connect to database: invalid value / unknown config name: custom
Feb 15 11:14:58 AZ-P-PERFDASH-VS01 systemd[1]: grafana-server.service: Main process exited, code=exited, status=1/FAILURE
Feb 15 11:14:58 AZ-P-PERFDASH-VS01 systemd[1]: grafana-server.service: Failed with result ‘exit-code’.
Here is config snippet from grafana.ini,
This is I found from documentation to enable TLS,
Error shown in log is not very helpful to find what’s wrong. It looks to me that its definitely to do with ssl_mode because it works if TLS is disabled.
Grafana Enterprise Version - 8.3.4
Any help is greatly appreciated.
Thanks,
Paneendra