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 8 months ago

anna-savchenko commented 8 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 7 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 7 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.