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

🌱 observability: split up grafana configmap to not exceed the size limits on reoccuring apply #11769

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 31 additions & 2 deletions hack/observability/grafana/chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,37 @@ dashboardProviders:
options:
path: /var/lib/grafana/dashboards/default

dashboardsConfigMaps:
default: grafana-dashboards
extraConfigmapMounts:
- name: grafana-dashboard-cluster-api-mgmt-apiserver-requests
configMap: grafana-dashboard-cluster-api-mgmt-apiserver-requests
mountPath: /var/lib/grafana/dashboards/default/cluster-api-mgmt-apiserver-requests.json
subPath: cluster-api-mgmt-apiserver-requests.json
optional: false
- name: grafana-dashboard-cluster-api-performance
configMap: grafana-dashboard-cluster-api-performance
mountPath: /var/lib/grafana/dashboards/default/cluster-api-performance.json
subPath: cluster-api-performance.json
optional: false
- name: grafana-dashboard-cluster-api-state
configMap: grafana-dashboard-cluster-api-state
mountPath: /var/lib/grafana/dashboards/default/cluster-api-state.json
subPath: cluster-api-state.json
optional: false
- name: grafana-dashboard-cluster-api-wl-apiserver-requests
configMap: grafana-dashboard-cluster-api-wl-apiserver-requests
mountPath: /var/lib/grafana/dashboards/default/cluster-api-wl-apiserver-requests.json
subPath: cluster-api-wl-apiserver-requests.json
optional: false
- name: grafana-dashboard-controller-runtime
configMap: grafana-dashboard-controller-runtime
mountPath: /var/lib/grafana/dashboards/default/controller-runtime.json
subPath: controller-runtime.json
optional: false
- name: grafana-dashboard-runtime-extensions
configMap: grafana-dashboard-runtime-extensions
mountPath: /var/lib/grafana/dashboards/default/runtime-extensions.json
subPath: runtime-extensions.json
optional: false

# Disable grafana test framework
testFramework:
Expand Down
12 changes: 11 additions & 1 deletion hack/observability/grafana/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,21 @@ resources:
namespace: observability

configMapGenerator:
- name: grafana-dashboards
- name: grafana-dashboard-cluster-api-mgmt-apiserver-requests
files:
- dashboards/cluster-api-mgmt-apiserver-requests.json
- name: grafana-dashboard-cluster-api-performance
files:
- dashboards/cluster-api-performance.json
- name: grafana-dashboard-cluster-api-state
files:
- dashboards/cluster-api-state.json
- name: grafana-dashboard-cluster-api-wl-apiserver-requests
files:
- dashboards/cluster-api-wl-apiserver-requests.json
- name: grafana-dashboard-controller-runtime
files:
- dashboards/controller-runtime.json
- name: grafana-dashboard-runtime-extensions
files:
- dashboards/runtime-extensions.json