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

Improve dashboard upload script #625

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

eero-t
Copy link
Contributor

@eero-t eero-t commented Dec 4, 2024

Description

Single configMap label is enough, and Grafana does not need to be restarted, one just needs to wait enough for it to check+process new configMaps & do Grafana page reload.

=> Updated script + README accordingly.

Issues

Grafana restart had following usability issues:

  • It breaks Grafana instance kubectl port-forwarding for everybody using it at the same time
  • If dashboard does not have an UID, i.e. restarted Grafana generates a new UID, URL for such dashboards change

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Dependencies

n/a.

Tests

Tested script manually with new and updated dashboard JSONs.

Single label is enough, and Grafana does not need to be restarted,
one just needs to wait enough for it to check+process new configMaps,
*and* reload of Grafana page.

Signed-off-by: Eero Tamminen <eero.t.tamminen@intel.com>
@eero-t eero-t requested a review from daisy-ycguo as a code owner December 4, 2024 14:01
@poussa poussa requested review from lianhao and removed request for daisy-ycguo December 5, 2024 08:00
@lianhao lianhao merged commit 3c63204 into opea-project:main Dec 5, 2024
7 checks passed
@eero-t eero-t deleted the dashboard-script branch December 5, 2024 10:34
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.

3 participants