Multi-org plugin provisioning (synthetic monitoring on oss)

  • What Grafana version and what operating system are you using?
    grafana oss in kubernetes - 8.5.13

  • What are you trying to achieve?
    Provision plugin configurations for all orgs

  • How are you trying to achieve it?
    Created configmap with plugin configurations (for synthetic monitoring

  • What happened?
    Plugin settings get provisioned only for org 1 (default org)

  • What did you expect to happen?
    For provisioning to apply to all orgs

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

apiVersion: 1
apps:
- type: grafana-synthetic-monitoring-app
  name: grafana-synthetic-monitoring-app
  orgId: 1
  disabled: false
  jsonData:
    apiHost: <host_url>
    stackId: <stack>
    logs:
      grafanaName: <ds_name>
      hostedId: <ds_id>
    metrics:
      grafanaName: <ds_name>
      hostedId: <ds_id>
  secureJsonData:
    publisherToken: <token>
- type: grafana-synthetic-monitoring-app
  name: grafana-synthetic-monitoring-app
  orgId: 2
  disabled: false
  jsonData:
    apiHost: <host_url>
    stackId: <stack>
    logs:
      grafanaName: <ds_name>
      hostedId: <ds_id>
    metrics:
      grafanaName: <ds_name>
      hostedId: <ds_id>
  secureJsonData:
    publisherToken: <token>
  secureJsonData:
    publisherToken: <token>
- type: grafana-synthetic-monitoring-app
  name: grafana-synthetic-monitoring-app
  orgId: 3
  disabled: false
  jsonData:
    apiHost: <host_url>
    stackId: <stack>
    logs:
      grafanaName: <ds_name>
      hostedId: <ds_id>
    metrics:
      grafanaName: <ds_name>
      hostedId: <ds_id>
  secureJsonData:
    publisherToken: <token>
ETC
  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
    No errors, no issues. Plugin provisioning works perfectly for org 1. Does not get provisioned for other orgs.
logger=provisioning.plugins t=2023-07-25T11:33:27.36+0000 lvl=info msg="Updating app from configuration " type=grafana-synthetic-monitoring-app enabled=true

Above happens as many times as there are orgs marked for provisioning

i gave figured it out.
For datasources you would use orgId for plugin configurations you need to use org_id
:slightly_smiling_face: