Datasource plugin get config form field

Hi all
I’m developing a datasource plugin, I need two fields(ak & sk) to compute a signature for authentication。
Now, I set the two fields in form of config html page, but I can’t get them by instanceSettings.ak and instanceSettings.sk. How can I do it?

You should use the jsonData blob if it is not predefined field. Like this instanceSettings.jsonData.ak

Example:

Partial: https://github.com/grafana/azure-monitor-datasource/blob/master/src/partials/config.html#L18

In code: https://github.com/grafana/azure-monitor-datasource/blob/master/src/azure_monitor/azure_monitor_datasource.ts#L22