Skip to content

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
YuryHrytsuk added a commit to YuryHrytsuk/osparc-ops-environments that referenced this pull request Jul 22, 2025
To be executed when removing metabase from deployment. This script will
remove all metabase-related records from DB

* ITISFoundation#1093
@YuryHrytsuk YuryHrytsuk mentioned this pull request Jul 22, 2025
1 task
YuryHrytsuk added a commit that referenced this pull request Jul 22, 2025
* Metabase: add db cleanup script

To be executed when removing metabase from deployment. This script will
remove all metabase-related records from DB

* #1093

* Update readme: document metabase removal

* typo
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