-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[kube-prometheus-stack] Grafana operator integration #5216
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Oleg Tsymbal <dzirg44@gmail.com>
Signed-off-by: Oleg Tsymbal <dzirg44@gmail.com>
Signed-off-by: Oleg Tsymbal <dzirg44@gmail.com>
Signed-off-by: Oleg Tsymbal <dzirg44@gmail.com>
Signed-off-by: Oleg Tsymbal <dzirg44@gmail.com>
Signed-off-by: Oleg Tsymbal <dzirg44@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why we have GrafanaDashboard
twice? One here and one in each file of dashboard-1.14
app.kubernetes.io/instance: grafana | ||
app.kubernetes.io/name: grafana-operator | ||
{{- end }} | ||
datasource: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this config below datasource looks similar to https://github.com/prometheus-community/helm-charts/blob/main/charts/kube-prometheus-stack/templates/grafana/configmaps-datasources.yaml
can we move it an distinct template that the template can be shared for CRD, non CRD approach?
Grafana Operator Integration
This pr brings the integration with Grafana Operator, and in addition to configmaps creates CRD for Grafana (it should be installed independently)
it creates:
GrafanaDatasource
from the datasources (unfortunately we can't reuse configmaps)GrafanaDashboard
resources from the configmapssync_grafana_dashboards.py
to generateGrafanaDashboard
dynamicallyTested on my local Kubernetes cluster.
This is POC Pull Request, so if you already discussed it - sorry in advance.
Special notes for your reviewer
@andrewgkew @gianrubio @gkarthiks @GMartinez-Sisti @jkroepke @scottrigby @Xtigyro @QuentinBisson
Checklist
[prometheus-couchdb-exporter]
)