Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to initialize Grafana oncall to the specified organization #5251

Closed
zt4123 opened this issue Nov 12, 2024 · 1 comment
Closed

How to initialize Grafana oncall to the specified organization #5251

zt4123 opened this issue Nov 12, 2024 · 1 comment
Labels
bug Something isn't working part:helm/kubernetes/docker

Comments

@zt4123
Copy link

zt4123 commented Nov 12, 2024

What went wrong?

What happened:

curl -X POST 'http://admin:admin@localhost:3000/api/plugins/grafana-oncall-app/resources/plugin/install'

Orgs other than Main org will prompt out "Unauthorized/Forbidden while accessing OnCall engine: /api/internal/v1/plugin/v2/status, status code: 403, check token" or "jsonData.stackId is not set", and there's no token created under Service Account section.

What did you expect to happen:
I know the Grafana OnCall engine only support one instance of the Grafana OnCall plugin at a time.

  • I wish to not use the API call to initialize the oncall, so that I can configure it through the GUI in the org I want
    OR If I have to use an API call to initialize, I hope I can add the orgId option to the command

How do we reproduce it?

  1. Install grafana oncall plugin through DashBoard CRD.
  2. Enable oncall plugin in GUI.
  3. Make API calls to install as suggested in [https://github.com/1.9.15 cannot connect to grafana(11.1.0) - "Plugin is not connected" #4960#issuecomment-2335048517]
  4. Config OnCall API URL: http://oncall-engine:8080/, click Connect.
  5. Only Main org will connected successfully, other orgs will prompt out like "jsonData.stackId is not set" or "Unauthorized/Forbidden while accessing OnCall engine: /api/internal/v1/plugin/v2/status, status code: 403, check token"

Grafana OnCall Version

v1.12.1

Product Area

Helm/Kubernetes/Docker

Grafana OnCall Platform?

Kubernetes

User's Browser?

No response

Anything else to add?

Grafana v11.2.3 (b37c88c4ec)

feature_toggles |  
accessControlOnCall | false
enable | externalServiceAccounts

Image

Let me know if I'm wrong, I beliew the expected procedure is something like: We don't use API call to initialize, we install oncall in the org we want, token created automatically, we provide oncall-engine url, then everything should be done?

@joeyorlando
Copy link
Contributor

hello 👋 It sounds like you want to connect mutilple grafana orgs to a single OnCall setup? This is not supported, see #598 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working part:helm/kubernetes/docker
Projects
None yet
Development

No branches or pull requests

2 participants