Skip to content

Add metabase stack ⚠️ (manual action required) #1093

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 8 commits into from
Jun 30, 2025

Conversation

YuryHrytsuk
Copy link
Collaborator

@YuryHrytsuk YuryHrytsuk commented Jun 27, 2025

What do these changes do?

Details:

  • metabase stores its data in (already running) postgres database
  • backups included
  • highly available (multiple replicas + persistent storage)
  • docker and traefik healthcheck are configured
  • prometheus scraping is configure (metabase-specific metrics)

Extra todo:

Manual action ⚠️

remove existing readonly user (if any)

  1. Revoke connect to database REVOKE CONNECT ON DATABASE <mydb> FROM <user>;
  2. Follow https://github.com/ITISFoundation/osparc-simcore/blob/22374df75beb805c1b57873a1b74b1f89557709c/services/postgres/scripts/remove-readonly-user.sql.template

create read only (non-login) user
Follow instructions in ITISFoundation/osparc-simcore#7997

create read only user
Follow instructions in ITISFoundation/osparc-simcore#7997

create metabase user and database
Follow instructions in ITISFoundation/osparc-simcore#7997

restart pgbackup (do as last step)
pg_backup needs to be restarted. This will triger pgenv.sh regeneration and new database (for metabase) will be added and thus backed up

Create metabase admin user

  1. manually go to metabase url and create a user (use the same devops email)
  2. save admin credentials

Source: https://git.speag.com/oSparc/osparc-ops-deployment-configuration/-/merge_requests/1469/diffs

How to deploy

  1. Create metabase user and database user via scripts from ♻️ Update postgres configuration ⚠️ DEVOPS osparc-simcore#7997
  2. Run Release CI

Related issue/s

Related PR/s

Checklist

  • I tested and it works

CI:

  • The Stack has been included in CI Workflow

New Service:

  • Service has resource limits and reservations
  • Service has placement constraints or is global
  • Service is restartable
  • Service restart is zero-downtime
  • Service has >1 replicas in PROD
  • Service has docker heathlcheck enabled
  • Service is monitored (via prometheus and grafana) --> no special grafana dashboard
  • Service is not bound to one specific node (e.g. via files or volumes)
  • Relevant OPS E2E Test are added

Exposed via traefik:

  • Service's Public URL is included in maintenance mode --> not relevant (ops services are not handled by maintenance)
  • Service's Public URL is included in testing mode --> not relevant
  • Service's has Traefik (Service Loadbalancer) Healthcheck enabled
  • Credentials page is updated
  • Url added to e2e test services (e2e test checking that URL can be accessed)

@YuryHrytsuk YuryHrytsuk self-assigned this Jun 30, 2025
@YuryHrytsuk YuryHrytsuk added this to the Engage milestone Jun 30, 2025
@YuryHrytsuk YuryHrytsuk changed the title Add metabase stack Add metabase stack ⚠️ (manual action required) Jun 30, 2025
@YuryHrytsuk YuryHrytsuk marked this pull request as ready for review June 30, 2025 09:44
@YuryHrytsuk YuryHrytsuk requested a review from mrnicegyu11 as a code owner June 30, 2025 09:44
Copy link
Member

@pcrespov pcrespov left a comment

Choose a reason for hiding this comment

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

thx!

@YuryHrytsuk YuryHrytsuk merged commit 08dab8b into ITISFoundation:main Jun 30, 2025
3 checks passed
@YuryHrytsuk YuryHrytsuk deleted the add-metabase-stack branch June 30, 2025 11:47
YuryHrytsuk added a commit to YuryHrytsuk/osparc-ops-environments that referenced this pull request Jun 30, 2025
CI calls up-<target> makefile target. Without these target CI will fail

* ITISFoundation#1061

* ITISFoundation#1093
YuryHrytsuk added a commit that referenced this pull request Jun 30, 2025
CI calls up-<target> makefile target. Without these target CI will fail

* #1061

* #1093
YuryHrytsuk added a commit to YuryHrytsuk/osparc-ops-environments that referenced this pull request Jun 30, 2025
@YuryHrytsuk YuryHrytsuk mentioned this pull request Jun 30, 2025
1 task
YuryHrytsuk added a commit that referenced this pull request Jun 30, 2025
* Metabase: add makefile up targets

CI calls up-<target> makefile target. Without these target CI will fail

* #1061

* #1093

* Metabase: add missing docker stack deploy stmt

* #1061

* #1093
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.

Deploy metabase and provide access to selected app-team members
2 participants