canonical / grafana-k8s-operator

https://charmhub.io/grafana-k8s
Apache License 2.0
6 stars 22 forks source link

Plugin support is required for air-gapped deployments #294

Open anna-savchenko opened 10 months ago

anna-savchenko commented 10 months ago

Enhancement Proposal

Some plugins, such as Vonage, do not come pre-installed with the charm. If COS deployment is air-gapped, we first need to download the plugin zip file and then add it through the creation of a PVC. This is a lot of manual work.

A juju-supported way to install plugins from a zip file is required.

IbraAoad commented 9 months ago

Enhancement Proposal

Some plugins, such as Vonage, do not come pre-installed with the charm. If COS deployment is air-gapped, we first need to download the plugin zip file and then add it through the creation of a PVC. This is a lot of manual work.

A juju-supported way to install plugins from a zip file is required.

Hi Anna,

anna-savchenko commented 9 months ago

Hey Ibrahim, my bad about creating the PVC, indeed this is not required.

This is how we add the plugins now:

$ juju scp --container grafana vonage-status-panel/ grafana/0:/var/lib/grafana/plugins
$ juju ssh --container grafana grafana/0
# grafana-cli plugins ls
installed plugins:
vonage-status-panel @ 1.0.11
Please restart Grafana after installing plugins. Refer to Grafana documentation for instructions if necessary.
# exit
$ juju exec --unit grafana/0 -- PEBBLE_SOCKET=/charm/containers/grafana/pebble.socket pebble restart grafana

But it would be ideal if we could add the plugins through charm resources. To avoid any additional steps after deploying the COS bundle.