grafana / oncall

Developer-friendly incident response with brilliant Slack integration
GNU Affero General Public License v3.0
3.32k stars 262 forks source link

grafana auto-update oncall plugins #2688

Open schechev-a opened 11 months ago

schechev-a commented 11 months ago

What went wrong?

What happened:

How do we reproduce it?

Grafana-oncall plugin updated Plugin not showing in browser I update grafana oncall engine - everything works

Grafana OnCall Version

plugin 1.3.19 - engine 1.3.15

Product Area

Helm

Grafana OnCall Platform?

Grafana-oncall engine 1.3.15

User's Browser?

Version 114.0.5735.133 (Official Build) (64-bit)

njohnstone2 commented 11 months ago

This caught me out as well. It appears to be more of a Grafana issue than Grafana Oncall as the default behaviour for updating plugins is to use latest.

Assuming you are using Helm to install Grafana, You can pin the plugin version (described here). It works by using extraInitContainers to use the grafana-cli to specify a specific plugin version to install.

schechev-a commented 11 months ago

I also wrote about this in grafana community, if anyone is interested https://community.grafana.com/t/grafana-plugins-auto-update/100125

alexintech commented 11 months ago

In Helm values.yml you can specify the full url for a plugin with exact version:

plugins:
  - https://grafana.com/api/plugins/grafana-oncall-app/versions/v1.3.8/download;grafana-oncall-app
schechev-a commented 11 months ago

In my case, grafana-oncall is synchronized from a other grafana that is installed in docker Can I somehow hardcode the plugin version, but not the engine?

frankja2 commented 10 months ago

how to achieve the same "no update" of oncall plugin for docker container?

schechev-a commented 10 months ago

I set in the env file for the grafana: GF_INSTALL_PLUGINS=grafana-oncall-app 1.3.21 It's work for me