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

Retry requests when setting Grafana's home dashboard #378

Merged
merged 1 commit into from
Jan 23, 2020

Conversation

branden
Copy link
Contributor

@branden branden commented Jan 23, 2020

https://jira.mesosphere.com/browse/DCOS-62216

This fixes an issue that may cause the Grafana home dashboard to be empty. If the job that sets Grafana's home dashboard runs before Grafana's API is ready, it will fail after one attempt. This PR changes the job to retry requests that fail with transient errors.

Testing

I tested this PR by deploying a Konvoy cluster with the prometheus and prometheusadapter addons disabled, deploying the prometheus-operator chart from this branch, browsing to /ops/portal/grafana, and observing that the home dashboard is set to "Kubernetes / Compute Resources / Cluster".

The job that sets Grafana's home dashboard may run before Grafana's API
is ready.
@branden branden added the ready ready label Jan 23, 2020
@branden branden requested review from gracedo, alejandroEsc and a team January 23, 2020 17:32
@branden branden self-assigned this Jan 23, 2020
@branden
Copy link
Contributor Author

branden commented Jan 23, 2020

CI is giving this PR the same spurious error as #377 (comment). Likewise, make ct.lint passes when I run it locally.

@branden
Copy link
Contributor Author

branden commented Jan 23, 2020

The CI error is fixed by #379

@branden branden merged commit f44ea4d into mesosphere:master Jan 23, 2020
@branden branden deleted the grafana-home-dashboard branch January 23, 2020 19:09
mesosphere-teamcity pushed a commit that referenced this pull request Jan 23, 2020
…uests when setting Grafana's home dashboard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready ready
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants