Comments (4)
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.
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.
@theSuess Will look into this, however, there should be a flag to do this automatically. Pending his investigation
from grafana-operator.
@theSuess does this apply to all App plugins or only some of them?
from grafana-operator.
Related Issues (20)
- LDAP configuration example HOT 14
- [Bug] Documentation: Installation instructions for Kustomize are not working HOT 3
- [Bug] Signing not working as intended HOT 1
- Make the grafana operator able to create grafana service accounts and tokens from yaml HOT 3
- Documentation: PVC and Volumes example HOT 6
- Installing custom plugin HOT 5
- Port NotificationChannel CRD from operator v4 to v5 HOT 3
- Prometheus data source for "Azure Monitor for Prometheus" with workload identity does not work HOT 5
- [Bug] grafana operator 5.6.0 -> 5.6.1 upgrade issues openshift HOT 28
- [Bug] instanceSelector.matchExpressions not working for GrafanaDatasource HOT 1
- Dashboard from configmap using selector HOT 4
- Grafana deployment with a Persistent Volume HOT 4
- Service account automountServiceAccountToken should be set to false HOT 3
- Service Account for grafana instance does not get annotations HOT 2
- [Bug] Unable to set custom secrets without defining grafana container image HOT 6
- watch namespaces using a label selector
- [Bug] Unable to upgrade from v5.6.0 on OpenShift HOT 10
- [doc] Grafana deployment with a Persistent Volume HOT 6
- Unable to limit which Grafana can use which dashboards (v5 operator) HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grafana-operator.