- Bug Fixes
Changed
- For OSS installations of OnCall, initial configuration is now simplified. When running for local development, you no longer need to configure the plugin via the UI. This is achieved through passing one environment variable to both the backend & frontend containers, both of which have been preconfigured for you in
docker-compose-developer.yml.- The Grafana API URL must be passed as an environment variable,
GRAFANA_API_URL, to the OnCall backend (and can be configured by updating this env var in your./dev/.env.devfile) - The OnCall API URL can optionally be passed as an environment variable,
ONCALL_API_URL, to the OnCall UI. If the environment variable is found, the plugin will "auto-configure", otherwise you will be shown a simple configuration form to provide this info.
- The Grafana API URL must be passed as an environment variable,
- For Helm installations, if you are running Grafana externally (eg.
grafana.enabledis set tofalsein yourvalues.yaml), you will now be required to specifyexternalGrafana.urlinvalues.yaml. make startwill now idempotently check to see if a "127.0.0.1 grafana" record exists in/etc/hosts(using a tool calledhostess). This is to support usinghttp://grafana:3000as theOrganization.grafana_urlin two scenarios:oncall_engine/oncall_celery->grafanaDocker container communication- public URL generation. There are some instances where
Organization.grafana_urlis referenced to generate public URLs to a Grafana plugin page. Without the/etc/hostsrecord, navigating tohttp://grafana:3000/some_pagein your browser, you would obviously get an error from your browser.