TheGameProfi
TheGameProfi

Reputation: 3

Grafana OSS OnCall can't connect to Grafana-Cloud

I installed Grafana and Grafana OnCall on my Server via docker compose. But now when i try connecting the local OnCall with the Grafana-Cloud OnCall i just get the error 'Invalid Token', the docker logs also doesn't show anything interesting.

I am using the default docker-compose.yaml from the github repo. I tried setting 'GRAFANA_CLOUD_ONCALL_API_URL' as env for OnCall but it's still not working and not showing up in the Settings page. Does anybody know how to fix this?

Upvotes: 0

Views: 835

Answers (2)

Zeeshan Shakeel
Zeeshan Shakeel

Reputation: 21

To connect your Grafana On-Call OSS instance to Grafana Cloud On-Call, you'll need to generate an API token in Grafana Cloud OnCall and configure it in your Grafana On-Call OSS instance.

1. Obtain API Token:

  • Log in to your Grafana Cloud OnCall account.
  • Navigate to Alerts & IRM -> On Call -> Settings -> Cloud.
  • Generate an API token and copy it for later use.

Configure Grafana On-Call OSS:

  • In your Grafana On-Call OSS instance, go to Alerts & IRM -> On Call -> Settings -> Cloud.
  • Paste the API token you generated in the appropriate field.
  • Click Save and Connect.

Important Notes:

  • The API token is a sensitive piece of information. Handle it securely and avoid sharing it publicly.
  • Once generated, you might not be able to view the API token again in Grafana Cloud On-Call. Make sure to store it in a safe place.
  • Connecting to Grafana Cloud On-Call is essential for accessing features like mobile apps, SMS, and push notifications. Bypassing this connection will limit the functionality of your Grafana On-Call instance.

Be Careful with OnCall plugin version:

  • There is much development happening on Grafana on call plugin. You will find a new version daily. Make sure to keep an eye on the stable version. As of this writing, v1.9.0 is working fine. Using the latest version didn’t help & keep giving me “Plugin Not Connected” issues. You can also refer to this thread. https://github.com/grafana/oncall/issues/4843

By following these steps, you should be able to successfully connect your Grafana On-Call OSS instance to Grafana Cloud On-Call and leverage its additional features.

Upvotes: 1

TheGameProfi
TheGameProfi

Reputation: 3

I got it working. The trick is to add GRAFANA_CLOUD_ONCALL_API_URL as env for Grafana. And also not as full URL only 'https://oncall-prod-eu-west-0.grafana.net/oncall' is needed.

Upvotes: 0

Related Questions