I have an Azure function that accepts one parameter and returns a simple JSON output.
When I configure the data source I specify "API Key Value pair" and provide Azure function key as "Query Parameter"
that is Key=code; Value=<Function key value>.
When I test my new data source I specify my Azure function URL
Then everything works. When I look at the Query Inspector then I see my URL is represented correctly as above but without obfuscation of the function key.
It appears there is an issue of how Grafana saves the data source authentication parameters and passes them to the queries.
I tried using Headers instead of Query parameters in the Auth section. I also tried to pass function key in "Headers & URL params" section with the same results.
Describe the bug
I have an Azure function that accepts one parameter and returns a simple JSON output. When I configure the data source I specify "API Key Value pair" and provide Azure function key as "Query Parameter" that is
Key=code; Value=<Function key value>
.When I test my new data source I specify my Azure function URL
https://<myfunction>.azurewebsites.net/api/MyFunction?param=foo-bar
I am getting
error getting data frame. 401 Unauthorized
In Grafana's Query Inspector I can see that my URL is represented correctly as
with function key obfuscated by "xxxxxx". However, I am getting "401".
When I go back to reconfigure the Infinity data source with "No Auth" and specify the function key right in the query as
Then everything works. When I look at the Query Inspector then I see my URL is represented correctly as above but without obfuscation of the function key.
It appears there is an issue of how Grafana saves the data source authentication parameters and passes them to the queries.
I tried using Headers instead of Query parameters in the Auth section. I also tried to pass function key in "Headers & URL params" section with the same results.
Steps to reproduce
Sample Data
Screenshots
Version Details:
Additional context
Add any other context about the problem here.