-
Notifications
You must be signed in to change notification settings - Fork 0
feat: metabase dashboard #380
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
Open
AndrewGavril
wants to merge
36
commits into
main
Choose a base branch
from
analytics-platform-develop
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
85005fb
docs: added metabase dashboard creating guide
VBStudi0s dde4cfa
docs: metabase dashboards guide improved
VBStudi0s 036da23
MVP metabase prototype
Margarita-Chi f67f33e
feat: adding env example
kmaltsev2006 416f7d9
docs: add backup guide
Mkz-Prog a088b3b
docs: added metabase features research
VBStudi0s be4b82f
feat: Metabase integration
VBStudi0s c2446de
add queries
Margarita-Chi 67f47f7
fix: docker-compose
Margarita-Chi 5e2414d
fix: style and docs improvements
VBStudi0s 440942d
fix: rename iperf3
Margarita-Chi ca065d2
add queries
Margarita-Chi 3ea7656
fix: rename iperf3 box plot
Margarita-Chi 7c9b704
add box plot for udp
Margarita-Chi 60080ff
add box plot for tcp
Margarita-Chi e163c4e
fix: improved README and docs
VBStudi0s 826f1db
fix: README style improvements
VBStudi0s 17bfeaf
feat: solving conflicts via rebase
kmaltsev2006 47b1886
feat: fixing check-style
kmaltsev2006 137450f
feat: fix check-style
kmaltsev2006 711e14f
feat: .env fix. Added metabase port and addresses
NikitaKrinkin 033a5c7
fix: added metabase to index, backup link change
NikitaKrinkin 930e198
fix: sql compare queries syntax fix
NikitaKrinkin b5d2110
queries actualization
NikitaKrinkin a9d02a3
fix: style fix
NikitaKrinkin 3ed431a
fix: revert some queries changes
NikitaKrinkin d6db4f0
feat: queries actualization
NikitaKrinkin 0820749
Merge branch 'main' into metabase
NikitaKrinkin 607b40b
docs: readme and docs improvements (moved and merged docs from metaba…
NikitaKrinkin 129508e
feat: db dump update + docs: readme fix
NikitaKrinkin a7873cb
fix: Makefile
NikitaKrinkin 4dede93
new metabase dump + README instruction for dumps improvements; horrib…
NikitaKrinkin 86d07c7
Merge main
NikitaKrinkin 7106a87
Init metabase dump by default
NikitaKrinkin f855031
new graphs -> new dump
NikitaKrinkin e2d4eff
Style fix
NikitaKrinkin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| # Руководство по созданию и использованию бэкапов для metabase | ||
|
NikitaKrinkin marked this conversation as resolved.
|
||
|
|
||
| В этом рукводстве расписаны основные шаги для создания бэкапов запущенного сервиса metabase, а также переноса его на другие системы с последующей инциализацией. | ||
|
|
||
| ## Создание бэкапов | ||
|
|
||
| **Metabase** поднимается вместе со своей дополнительной базой данных, где хранит все данные для входа, а также данные о графиках и дашбордах. | ||
|
|
||
| Для того чтобы сделать бэкап у вас должна быть запущена эта БД `os-image-testing-imgtests-metabase-meta-db-1`. | ||
|
|
||
| Далее выполните команду в терминале: | ||
|
|
||
| ```bash | ||
| docker exec os-image-testing-imgtests-metabase-meta-db-1 pg_dump -U metabase -d metabase -F c -b -v > metabase_backup_$(date +%Y%m%d).dump | ||
| ``` | ||
|
|
||
| После выполнения этой команды в текущей директории создастся дамп БД metabase *(пр. metabase_backup_20260407.dump)*. Далее можно передать его другому разработчику. Также, не забудьте передать ему данные для входа на сайт. | ||
|
|
||
| ## Импорт бэкапа | ||
|
|
||
| Предположим, у вас есть файл дампа metabase_backup.dump, который Вы положили в папку с проектом, а также данные для входа. | ||
|
|
||
| ### **Шаг 1. Запустите проект** | ||
|
|
||
| ```bash | ||
| make docker-run-metabase | ||
| ``` | ||
|
|
||
| ### **Шаг 2. Остановите контейнер metabase** | ||
|
|
||
| ```bash | ||
| docker stop os-image-testing-imgtests-metabase-1 | ||
| ``` | ||
|
|
||
| ### **Шаг 3. Очистите текущую пустую базу** | ||
|
|
||
| Так как Metabase при первом старте уже успел создать пустые таблицы, их надо удалить, чтобы не было конфликтов при восстановлении. | ||
|
|
||
| ```bash | ||
| docker exec -i os-image-testing-imgtests-metabase-meta-db-1 psql -U metabase -d postgres -c "DROP DATABASE metabase;" | ||
|
|
||
| docker exec -i os-image-testing-imgtests-metabase-meta-db-1 psql -U metabase -d postgres -c "CREATE DATABASE metabase;" | ||
| ``` | ||
|
|
||
| ### **Шаг 4. Запишите дамп в базу** | ||
|
|
||
| ```bash | ||
| docker exec -i os-image-testing-imgtests-metabase-meta-db-1 pg_restore -U metabase -d metabase < ваш_дамп_файл.dump | ||
| ``` | ||
|
|
||
| ### **Шаг 5. Снова запустите Metabase** | ||
|
|
||
| ```bash | ||
| docker start os-image-testing-imgtests-metabase-1 | ||
| ``` | ||
|
|
||
| У вас поднимется заполненный **metabase** со всеми графиками и дашбордами. | ||
|
|
||
| ## Полезные ссылки | ||
|
|
||
| * [Руководство по созданию дампов БД metabase](https://mintlify.wiki/metabase/metabase/operations/backing-up) | ||
|
|
||
| * [Установка metabase в production](https://www.metabase.com/docs/latest/installation-and-operation/running-metabase-on-docker#production-installation) | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.