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] Minify Grafana Dashboards and Update CRDs to 0.65.1 #3416

Merged

Conversation

jkroepke
Copy link
Member

@jkroepke jkroepke commented May 22, 2023

What this PR does / why we need it

Reduce the helm chart size (see #3267 (comment))

Which issue this PR fixes

(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

Special notes for your reviewer

Size of the helm release on branch main

% kubectl get secrets sh.helm.release.v1.kube-prometheus-stack-f1dkdbv43c.v1 -o jsonpath='{.data.release}' | base64 -d > release
% ls -lah release 
-rw-r--r--  1 jkr  staff   971K May 23 08:05 release

Size of the helm release on branch minify-json-dashboards

% kubectl get secrets sh.helm.release.v1.kube-prometheus-stack-f1dkdbv43c.v1 -o jsonpath='{.data.release}' | base64 -d > release      
% ls -lah release                                                                                                                     
-rw-r--r--  1 jkr  staff   979K May 23 08:07 release

Checklist

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

@jkroepke jkroepke force-pushed the minify-json-dashboards branch from f451310 to d85d8ee Compare May 22, 2023 20:10
@jkroepke jkroepke force-pushed the minify-json-dashboards branch from d85d8ee to a74dfbe Compare May 22, 2023 22:47
@jkroepke jkroepke changed the title [kube-prometheus-stack] Minify Grafana Dashboards [kube-prometheus-stack] Minify Grafana Dashboards and Update CRDs to 0.65.1 May 22, 2023
Signed-off-by: Jan-Otto Kröpke <[email protected]>
@jkroepke jkroepke force-pushed the minify-json-dashboards branch from 440825e to 9c645d0 Compare May 22, 2023 23:02
Comment on lines -124 to -129
# fix drilldown links. See https://github.com/kubernetes-monitoring/kubernetes-mixin/issues/659
for row in content_struct['rows']:
for panel in row['panels']:
for style in panel.get('styles', []):
if 'linkUrl' in style and style['linkUrl'].startswith('./d'):
style['linkUrl'] = style['linkUrl'].replace('./d', '/d')
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fixed upstream

@jkroepke jkroepke force-pushed the minify-json-dashboards branch from 9026331 to 7e9b291 Compare May 23, 2023 06:06
@jkroepke jkroepke marked this pull request as ready for review May 23, 2023 06:42
@QuentinBisson
Copy link
Member

@jkroepke this is an awesome find for now :) I think we are missing the RBAC to access those CRDs but I will take a better look today

@jkroepke
Copy link
Member Author

@QuentinBisson Maintainers are allowed to edit this pull request is enabled, so feel free to commit into this.

Signed-off-by: QuentinBisson <[email protected]>
@QuentinBisson QuentinBisson force-pushed the minify-json-dashboards branch from a47cdf8 to 181f72d Compare May 23, 2023 11:33
@QuentinBisson
Copy link
Member

@jkroepke Done i'll test this now

Copy link
Member

@QuentinBisson QuentinBisson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grafana dashboard tested

@QuentinBisson
Copy link
Member

Thank you @jkroepke

@QuentinBisson QuentinBisson merged commit af9e373 into prometheus-community:main May 23, 2023
@jkroepke jkroepke deleted the minify-json-dashboards branch May 23, 2023 15:53
Matiasmct pushed a commit to giffgaff/prometheus-charts-backup that referenced this pull request May 31, 2023
…0.65.1 (prometheus-community#3416)

* [kube-prometheus-stack] Minify Grafana Dashboards

Signed-off-by: Jan-Otto Kröpke <[email protected]>

* [kube-prometheus-stack] Minify Grafana Dashboards

Signed-off-by: Jan-Otto Kröpke <[email protected]>

* [kube-prometheus-stack] Update CRDs

Signed-off-by: Jan-Otto Kröpke <[email protected]>

* [kube-prometheus-stack] Test remove dashboards

Signed-off-by: Jan-Otto Kröpke <[email protected]>

* [kube-prometheus-stack] revert Test remove dashboards

Signed-off-by: Jan-Otto Kröpke <[email protected]>

* [kube-prometheus-stack] minify CoreDNS dashboard

Signed-off-by: Jan-Otto Kröpke <[email protected]>

* Add missing rbac and readme

Signed-off-by: QuentinBisson <[email protected]>

---------

Signed-off-by: Jan-Otto Kröpke <[email protected]>
Signed-off-by: QuentinBisson <[email protected]>
Signed-off-by: Quentin Bisson <[email protected]>
Co-authored-by: QuentinBisson <[email protected]>
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.

[kube-prometheus-stack] update to 0.64
2 participants