Skip to content
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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

dzirg44
Copy link

@dzirg44 dzirg44 commented Jan 19, 2025

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 configmaps
  • Fixed sync_grafana_dashboards.py to generate GrafanaDashboard dynamically

Tested 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

  • DCO signed
  • Chart Version bumped
  • Title of the PR starts with chart name (e.g. [prometheus-couchdb-exporter])

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>
@dzirg44 dzirg44 changed the title Grafana operator integration [kube-prometheus-stack] Grafana operator integration Jan 20, 2025
Copy link
Member

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:
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants