GithubHelp home page GithubHelp logo

Plugin Installation about grafana-operator HOT 5 CLOSED

grafana avatar grafana commented on May 18, 2024
Plugin Installation

from grafana-operator.

Comments (5)

ToonTijtgat2 avatar ToonTijtgat2 commented on May 18, 2024 1

Dear

I think there is a good usecase to make it possible to install grafana plugins via the operator.
Grafana oncall needs a plugin that has nothing to do with a datasource or dashboard.

If there would be a possiblilty to install a plugin via the operator would be a good thing.

Thanks for checking

from grafana-operator.

pb82 avatar pb82 commented on May 18, 2024

The openshift/origin-grafana image does not seem to support plugin installation in the way that the official image does. I'd like to keep the operator functional even when using third party images (that is often a requirement for productization or use in internal environments) . That's why its currently implemented using the init container. It works in the following way:

  1. Plugins can be added to dashboards, see for example here
  2. When the operator reconciles the dashboards it builds a list of all plugins that need to be installed (it will also do some sanity checking on the versions)
  3. It passes this list as an env var to the init container when then uses a small Python script to download the plugins and copy them into a volume mounted at the expected Grafana plugins location
  4. Grafana is restarted to load the new Plugins

I've thought about allowing Plugins to be added to the Grafana CR too (instead of only to dashboard CRs) but had no use case yet that would require it.

from grafana-operator.

gambol99 avatar gambol99 commented on May 18, 2024

Hi @pb82 ... makes sense to me :-) .. perhaps one solution to enabled both would be to allow users to add additional envs mapped to the deployment ...

from grafana-operator.

pb82 avatar pb82 commented on May 18, 2024

@gambol99 Additional additional env vars via the CR sounds interesting. Do you see any other use cases (besides plugins) that this would allow?

from grafana-operator.

pb82 avatar pb82 commented on May 18, 2024

@gambol99 Closing this issue as its more of a feature request. Feel free to reopen if you have a use case for allowing to set the env vars in the CR.

from grafana-operator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.