TestDatasource() Method in datasource.ts

Hi I am using Grafana v 9.0.4, I have few query on Config screen

  1. I am creating a data source plugin, suppose if we want to connect to an external API of one cloud instance with authentication enabled to test if the connection is established can we make a POST method instead of default GET method written under testDatasource()?

  2. I have implemented POST method with sample payload on Save & Test button to check the connection is OK. But in the backend /api/proxy/id gets appended by default and connection does not get established what is the purpose of this please explain!

However if I do the same process on Postman I see 200ok status indication of success connection

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.