Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

[stable/grafana] Install plugins #9564

Closed
kolesoffac opened this issue Nov 27, 2018 · 10 comments
Closed

[stable/grafana] Install plugins #9564

kolesoffac opened this issue Nov 27, 2018 · 10 comments
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.

Comments

@kolesoffac
Copy link

kolesoffac commented Nov 27, 2018

How can i install plugins after helm install of grafana?

Thanks

@kolesoffac kolesoffac changed the title [stable/grafana] Install plugin [stable/grafana] Install plugins Nov 27, 2018
@jpdasma
Copy link

jpdasma commented Nov 30, 2018

Try editing the plugins value in values.yaml (e.g.):

plugins:
- digrich-bubblechart-panel
- grafana-clock-panel

Then do a helm upgrade -f values.yaml <release-name> grafana

@kolesoffac
Copy link
Author

Freezing on install digrich-bubblechart-panel and not started pod.

@omerfsen
Copy link

omerfsen commented Dec 3, 2018

I am using persistent volumes and what i did is to upgrade my helm with adding a plugin:

plugins:
- grafana-kubernetes-app
- camptocamp-prometheus-alertmanager-datasource

so after that

helm upgrade --namespace monitoring -f upgrade.yml grafana stable/grafana

but it basically deleted all my configuration instead of adding a new plugin only. (although plugin was added)

so is there something we can do to keep current configuration AND installing a plugin after installing helm chart for grafana

@larsduelfer
Copy link

Hi all, we were able to add the plugin to the config for grafana an run a helm upgrade (this was done as part of the prometheus operator helm chart, since it includes the grafana chart). The config map is updated but the new config is not picked-up by the pod automatically. We had to manually delete the pod and the new one that was automatically created used the new config and installed the plugin.

Is this intended to happen automatically?

@paskal
Copy link
Contributor

paskal commented Dec 3, 2018

Absence of automatic configuration reload is an issue, which is described in detail at #8798

@stale
Copy link

stale bot commented Jan 3, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any further update will cause the issue/pull request to no longer be considered stale. Thank you for your contributions.

@stale stale bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 3, 2019
@stale
Copy link

stale bot commented Jan 17, 2019

This issue is being automatically closed due to inactivity.

@stale stale bot closed this as completed Jan 17, 2019
@jaletelier
Copy link

I am using persistent volumes and what i did is to upgrade my helm with adding a plugin:
...
but it basically deleted all my configuration instead of adding a new plugin only. (although plugin was added)

so is there something we can do to keep current configuration AND installing a plugin after installing helm chart for grafana

For anyone still wondering how to add new plugins without helm upgrade. If you are using persistent volumes you can access the grafana server pod to run grafana-cli plugins install <plugin-id>.

  • kubectl exec -it grafana-pod-id -n grafana -- grafana-cli plugins install <plugin-id>
  • Finally, delete the pod to restart the server: kubectl delete pod grafana-pod-id -n grafana

@holms
Copy link

holms commented Jan 8, 2020

I am using persistent volumes and what i did is to upgrade my helm with adding a plugin:
...
but it basically deleted all my configuration instead of adding a new plugin only. (although plugin was added)
so is there something we can do to keep current configuration AND installing a plugin after installing helm chart for grafana

For anyone still wondering how to add new plugins without helm upgrade. If you are using persistent volumes you can access the grafana server pod to run grafana-cli plugins install <plugin-id>.

* `kubectl exec -it grafana-pod-id -n grafana -- grafana-cli plugins install <plugin-id>`

* Finally, delete the pod to restart the server: `kubectl delete pod grafana-pod-id -n grafana`

In my pod grafana-cli is absent.

@dguyhasnoname
Copy link

@holms you need to mention the container name of grafana e.g.

kubectl exec -it grafana-pod-id -n grafana -c <grafana_container_name>-- grafana-cli plugins install

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.
Projects
None yet
Development

No branches or pull requests

8 participants