Permission denied for api/datasources request during initialisation of synthetic-monitoring

  • What Grafana version and what operating system are you using?
    Grafana v8.3.2 (standalone client)
    debian + nginx

  • What are you trying to achieve?
    Setup Synthetic Monitoring plugin

  • How are you trying to achieve it?

  1. I register cloud account and generated api keys;
  2. Installed plugin on my local grafana;
  3. Created configuration and tried to initialise it throw Web-UI;
  • What happened?
  1. I pressed on Enable plugin button with admin api key entered;
  2. After loading pictures and enabling plugin i pressed Initialize the plugin

Then request /api/plugin-proxy/grafana-synthetic-monitoring-app/install happened with publisherToken

  • status 200 and i got accessToken in response with all correct data from configuration

Then after several requests grafana execute /api/datasources with accessToken inside

  • status 403 Permission denied
  • What did you expect to happen?
    Successful initialisation of Synthetic Monitoring plugin

  • Can you copy/paste the configuration(s) that you are having problems with?

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.

  • Did you follow any online instructions? If so, what is the URL?

https://grafana.com/docs/grafana-cloud/synthetic-monitoring/installation/

I tried:

  1. All api keys (admin/viewer/editor etc) into parameter basicAuthPassword - always Permission denied
  2. All api keys (admin/viewer/editor etc) into parameter publisherToken - only Metric Publisher is ok, with others got error: {“msg”:“provided token does not have MetricsPublisher role”}
  3. Regenerated all api keys including admin api key used in “What happened? step #1” - always Permission denied

Can anyone advise what my next steps are?