SAP / alm-plug-in-for-grafana

Extend your analytics for application life-cycle management with the datasource plugins for SAP Cloud ALM and SAP Focused Run. With the SAP Cloud ALM Plugin for Rest interface, you are able to connect your SAP Cloud ALM tenants and get data in Table format or Time-series format to get new insights on your different ALM processes.
Apache License 2.0
12 stars 5 forks source link

Authentication to data source failed #113

Closed Kim-Allan closed 5 months ago

Kim-Allan commented 5 months ago

I have just installed grafana plugin, but when I press save and test after I have given the Token URL, Clisnt ID, and Client Secret. Then it says Authentication to data source failed.

I am sure the client ID and client secret are correct and working, so I am thinking, if it is becuase I dont use SSL on my grafana server? Cloud it be some security there, that is rejecting me ?

Or do someone have a good idea, where I can look, for finding the error ?

andreacampo commented 5 months ago

Hello Allan,

Please double check the following in the Datasource configuration: image

In the HTTP ==> Url section, the link should end with /api/calm-analytics/v1 Example: image

The "Token URL" in the OAuth 2.0 section is actually the url in the uaa section of your "SAP Cloud ALM API" service key + /oauth/token

So, if your service key looks like this:

image

Then, the configured data source should look like this:

image

Please check again this point and let me know.

Best Regards,

Andrea

Kim-Allan commented 5 months ago

It said forbidden, then I tried with http, then I tried with no https at all. Now it says Failed to fetch. Not sure if this is a security, if I try to many times ?

Kim-Allan commented 5 months ago

I should nto do any configuration in BTP right ? enable something to allow API ?

Kim-Allan commented 5 months ago

Now it says forbidden again. But not sure why. I cannot make my grafana run with https, so it runs with http. is that an issue? For why it could be denied access ? If I activate https in grafana, it will not start.

Kim-Allan commented 5 months ago

Solution https://me.sap.com/notes/3425859/E