Skip to content

Fix dashboard idempotency #231

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

Merged
merged 1 commit into from
Oct 20, 2022
Merged

Fix dashboard idempotency #231

merged 1 commit into from
Oct 20, 2022

Conversation

sjpb
Copy link
Collaborator

@sjpb sjpb commented Oct 19, 2022

Currently running ansible-playbook ansible/monitoring.yml --tags grafana repeatedly flip-flops between deploying and removing the grafana dashboards. This PR fixes that.

Not picked up by CI as CI cannot check the grafana UI directly - there is no easy way to scrape pages due to their use of javascript.

Note that the logic in grafana-dashboards/tasks/main.yml is based on https://github.com/cloudalchemy/ansible-grafana/blob/master/tasks/dashboards.yml#L108, but modified to also allow dashboards to be deployed from local files. However the result of _dashboards_copied in the current code is not the same as in that "upstream" version due to changes to paths, which has caused this problem.

@sjpb sjpb marked this pull request as ready for review October 19, 2022 15:41
@sjpb sjpb requested a review from m-bull October 19, 2022 15:41
Copy link
Collaborator

@m-bull m-bull left a comment

Choose a reason for hiding this comment

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

Good spot

@sjpb sjpb merged commit d342ef0 into main Oct 20, 2022
@sjpb sjpb deleted the fix/dashboards branch October 20, 2022 09:56
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.

2 participants