Skip to content

Commit

Permalink
observability: split up grafana configmap to not exceed the size limi…
Browse files Browse the repository at this point in the history
…ts on reoccuring apply
  • Loading branch information
chrischdi committed Jan 29, 2025
1 parent a3a7bb2 commit cc138ef
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 3 deletions.
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

0 comments on commit cc138ef

Please sign in to comment.