Giter Club home page Giter Club logo

Comments (4)

theSuess avatar theSuess commented on June 2, 2024 3

Alright, the difference is between app and datasource plugins. App plugins currently need to be enabled manually or using a provisioning file. This is something we should be able to implement by either using an init container or config map which will provide a plugin provisioning file like this:

apiVersion: 1

apps:
  - type: alexanderzobnin-zabbix-app
    disabled: false

from grafana-operator.

Tualua avatar Tualua commented on June 2, 2024

I use this ansible task. Works perfectly with plugin 4.4.5 and Grafana 10.1.6

---
- name: Add datasources
  hosts: master
  gather_facts: no
  become: yes
  tasks:
    - name: Add Zabbix datasource
      kubernetes.core.k8s:
        state: present
        definition:
          apiVersion: grafana.integreatly.org/v1beta1
          kind: GrafanaDatasource
          metadata:
            name: "{{ deployment_name }}-datasource-zabbix"
            namespace: "{{ namespace }}"
          spec:
            valuesFrom:
            - targetPath: "jsonData.username"
              valueFrom:
                secretKeyRef:
                  name: "{{ deployment_name }}-zabbix-account"
                  key: "GF_SECURITY_ZABBIX_USER"
            - targetPath: "secureJsonData.password"
              valueFrom:
                secretKeyRef:
                  name: "{{ deployment_name }}-zabbix-account"
                  key: "GF_SECURITY_ZABBIX_PASSWORD"
            instanceSelector:
              matchLabels:
                dashboards: "{{ deployment_name }}"
            plugins:
                - name: alexanderzobnin-zabbix-app
                  version: "{{ zabbix_plugin_version }}"
            datasource:
              uid: "DSZABBIX"
              name: my-zabbix
              type: "alexanderzobnin-zabbix-datasource"
              access: server
              url: https://my.zabbix.tld/api_jsonrpc.php
              isDefault: true
              jsonData:
                "authType": "userLogin"
                "dbConnectionDatasourceId": 1
                "dbConnectionEnable": true
                "disableDataAlignment": false
                "trends": true
                "trendsFrom": ""
                "trendsRange": ""
                "username": ${GF_SECURITY_ZABBIX_USER}
              secureJsonData:
                "password": ${GF_SECURITY_ZABBIX_PASSWORD}
              editable: true

I also use Postgresql connection deployed with provisioning

"dbConnectionDatasourceId": 1
"dbConnectionEnable": true

Just disable this if you don't need it

from grafana-operator.

HubertStefanski avatar HubertStefanski commented on June 2, 2024

@theSuess Will look into this, however, there should be a flag to do this automatically. Pending his investigation

from grafana-operator.

pb82 avatar pb82 commented on June 2, 2024

@theSuess does this apply to all App plugins or only some of them?

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.