What Grafana version and what operating system are you using?
Docker on Debian, Grafana v10.2.2
What are you trying to achieve?
Connect on-prem OnCall engine/plugin to grafana cloud.
How are you trying to achieve it?
All Containers are running inside my docker compose stack. I got a token from Grafana cloud for OnCall. I set the GRAFANA_CLOUD_ONCALL_API_URL env of the oncall-engine container to the URL provided in the cloud interface (eu-west in my case). In the container I can see this worked. The enviroment variable does not show in the OnCall settings in grafana.
What happened?
When entering the Token into the setting in my local Grafana I get an invalid token pop-up.
Using the provided CURL example when creating a token works fine.
What did you expect to happen?
The token to be accepted
Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
See What happened
Hey i had the same problem, i fixed it by adding the env to grafana itself.
As GRAFANA_CLOUD_ONCALL_API_URL=https://oncall-prod-eu-west-0.grafana.net/oncall
Hi could you explain your steps a bit more detailed? I set up my env “long” time ago and I am confused on what to do. Thanks in advance kind stranger.
mh yeah, I am using a bare metal grafana install and a seperate oncall docker-compose. But I actually set the env variable on the grafana machine but no look sadly.
Still thanks a lot
Just wanted to say THANK YOU, after 1 hour messing around trying all sorts of combinations I read your reply a bit slower and noticed you say that you added it to the oncall-engine, tried adding it to the docker compose as a last resort and it work.
snippet of the compose in the picture bellow.