Skip to content

Commit 720844a

Browse files
feat: add Metabase (#449)
1 parent 2495a25 commit 720844a

File tree

5 files changed

+106
-0
lines changed

5 files changed

+106
-0
lines changed

apps/metabase/0.47.2/data.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
additionalProperties:
2+
formFields:
3+
- default: ""
4+
envKey: PANEL_DB_HOST
5+
key: mysql
6+
labelEn: Database Service
7+
labelZh: 数据库服务
8+
required: true
9+
type: service
10+
- default: metabase
11+
envKey: PANEL_DB_NAME
12+
labelEn: Database
13+
labelZh: 数据库名
14+
random: true
15+
required: true
16+
rule: paramCommon
17+
type: text
18+
- default: metabase
19+
envKey: PANEL_DB_USER
20+
labelEn: User
21+
labelZh: 数据库用户
22+
random: true
23+
required: true
24+
rule: paramCommon
25+
type: text
26+
- default: metabase
27+
envKey: PANEL_DB_USER_PASSWORD
28+
labelEn: Password
29+
labelZh: 数据库用户密码
30+
random: true
31+
required: true
32+
rule: paramComplexity
33+
type: password
34+
- default: 3000
35+
envKey: PANEL_APP_PORT_HTTP
36+
labelEn: Port
37+
labelZh: 应用端口
38+
required: true
39+
rule: paramPort
40+
type: number
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
version: '3'
2+
services:
3+
metabase:
4+
image: metabase/metabase:v0.47.2
5+
container_name: ${CONTAINER_NAME}
6+
ports:
7+
- ${PANEL_APP_PORT_HTTP}:3000
8+
restart: always
9+
networks:
10+
- 1panel-network
11+
volumes:
12+
- ./data/metabase:/metabase
13+
- ./data/metabase-data:/metabase-data
14+
environment:
15+
MB_DB_TYPE: mysql
16+
MB_DB_DBNAME: ${PANEL_DB_NAME}
17+
MB_DB_PORT: 3306
18+
MB_DB_USER: ${PANEL_DB_USER}
19+
MB_DB_PASS: ${PANEL_DB_USER_PASSWORD}
20+
MB_DB_HOST: ${PANEL_DB_HOST}
21+
labels:
22+
createdBy: "Apps"
23+
healthcheck:
24+
test: curl --fail -I http://localhost:3000/api/health || exit 1
25+
interval: 15s
26+
timeout: 5s
27+
retries: 5
28+
networks:
29+
1panel-network:
30+
external: true

apps/metabase/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Metabase
2+
3+
Metabase 是一款开源的数据分析和可视化工具,它提供了丰富的功能来帮助用户探索、分析和可视化数据。以下是 Metabase 的一些主要功能简介,使用 Markdown 语法进行描述:
4+
5+
## 主要功能:
6+
7+
- **数据连接**:Metabase 可以连接多种数据源,包括关系型数据库(如MySQL、PostgreSQL、Oracle)、NoSQL数据库(如MongoDB)、云服务(如Amazon Redshift、Google BigQuery)以及各种数据文件格式。
8+
- **数据查询**:用户可以通过直观的图形界面或SQL查询语言来执行数据查询,从而轻松地提取所需的数据。
9+
- **可视化**:Metabase 提供了多种图表类型,包括条形图、折线图、饼图等,用户可以使用这些图表来呈现数据,并自定义图表样式和颜色。
10+
- **数据仪表板**:用户可以创建交互式的数据仪表板,将多个图表和查询结果组合在一起,以便更好地理解数据趋势和关系。
11+
- **自动化报表**:Metabase 允许用户创建定期自动生成的报表,以便在特定时间发送给团队成员或其他相关方。
12+
- **数据权限和安全性**:Metabase 提供了细粒度的数据访问权限控制,以确保只有授权用户能够访问敏感数据。
13+
- **问题和答案**:用户可以使用 Metabase 的“问题”功能来直接向系统提问,系统会自动执行相应的查询并返回答案,无需编写SQL查询。
14+
- **自动建议**:Metabase 提供了智能的查询建议功能,帮助用户更快地构建有效的查询。
15+
- **数据导出**:用户可以将查询结果以多种格式导出,包括CSV、Excel、图像等,以便进一步分析或共享数据。
16+
- **插件和扩展性**:Metabase 支持各种插件和扩展,可以根据需要添加新的功能和数据源连接。

apps/metabase/data.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Metabase
2+
tags:
3+
- BI
4+
title: 一款开源的数据分析和可视化工具
5+
type: BI
6+
description: 一款开源的数据分析和可视化工具
7+
additionalProperties:
8+
key: metabase
9+
name: Metabase
10+
tags:
11+
- BI
12+
shortDescZh: 一款开源的数据分析和可视化工具
13+
shortDescEn: An open source data analysis and visualization tool
14+
type: tool
15+
crossVersionUpdate: true
16+
limit: 0
17+
recommend: 0
18+
website: https://www.metabase.com
19+
github: https://github.com/metabase/metabase
20+
document: https://www.metabase.com/docs

apps/metabase/logo.png

3.18 KB
Loading

0 commit comments

Comments
 (0)