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

build(ansible): add options to install grafana and dashboards #5589

Merged
merged 3 commits into from
May 16, 2024

Conversation

lc525
Copy link
Member

@lc525 lc525 commented May 10, 2024

This PR adds an easier, automated way to deploy the MMS grafana dashboard used in various demos.

For an existing seldon core cluster, it is sufficient to run
ansible-playbook playbooks/setup-ecosystem.yaml -e full_install=false -e install_grafana=true
to add the grafana install.

For new ansible installs, the grafana dashboard is deployed by default. If may be disabled by passing install_grafana=false to the playbook

Details:

  • ansible role to add grafana to seldon cluster
  • allow configuring pre-loaded dashboards connected to prometheus data-source
  • add seldon MMS grafana dashboard
  • generate random password for grafana install

Which issue(s) this PR fixes:

  • INFRA-992 (internal issue) Automate grafana dashboard deployments

lc525 added 2 commits May 10, 2024 14:03
- ansible role to add grafana to seldon cluster
- allow configuring pre-loaded dashboards connected to prometheus data-source
- add seldon MMS grafana dashboard
- generate random password for grafana install
# - the grafana install, when configured
# Overwrite by passing sd_user and/or sd_password variables when running the playbook
seldon_admin_user: "admin"
seldon_random_gen_password: "{{ lookup('password', '/dev/null chars=digits length=6') }}"
Copy link
Member

Choose a reason for hiding this comment

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

How to fetch the randomly generated password?

Copy link
Member Author

Choose a reason for hiding this comment

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

It is printed during the playbook run. If that is missed, one may run kubectl get secret --namespace seldon-monitoring grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo to get the current password from k8s

Copy link
Member Author

Choose a reason for hiding this comment

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

I've added a comment on how to get the password beyond the first run of the playbook

@lc525 lc525 merged commit 631685c into SeldonIO:v2 May 16, 2024
3 checks passed
@lc525 lc525 deleted the INFRA-992/ansible-deploy-grafana branch May 16, 2024 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants